NetClientImpl

Constructors

this
this(EventLoop loop, NetClientOptions options)
Undocumented in source.
this
this(EventLoopPool pool)
Undocumented in source.
this
this(EventLoopPool pool, NetClientOptions options)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(string host, int port)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(string host, int port, string serverName)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getCodec
Codec getCodec()
Undocumented in source. Be warned that the author may not have intended to support it.
getHandler
NetConnectionHandler getHandler()
Undocumented in source. Be warned that the author may not have intended to support it.
getHost
string getHost()
Undocumented in source. Be warned that the author may not have intended to support it.
getId
int getId()
Undocumented in source. Be warned that the author may not have intended to support it.
getOptions
NetClientOptions getOptions()
Undocumented in source. Be warned that the author may not have intended to support it.
getPort
int getPort()
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.
isConnected
bool isConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
setCodec
NetClientImpl setCodec(Codec codec)
Undocumented in source. Be warned that the author may not have intended to support it.
setHandler
NetClientImpl setHandler(NetConnectionHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
setOnClosed
void setOnClosed(Action callback)
Undocumented in source. Be warned that the author may not have intended to support it.
setOptions
NetClient setOptions(NetClientOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DefaultLocalHost
enum string DefaultLocalHost;
Undocumented in source.
DefaultLocalPort
enum int DefaultLocalPort;
Undocumented in source.

Inherited Members

From NetClient

connect
void connect(string host, int port)

Open a connection to a server at the specific {@code port} and {@code host}. <p> {@code host} can be a valid host name or IP address. The connect is done asynchronously and on success, a {@link Connection} instance is supplied via the {@code connectHandler} instance

connect
void connect(string host, int port, string serverName)

Open a connection to a server at the specific {@code port} and {@code host}. <p> {@code host} can be a valid host name or IP address. The connect is done asynchronously and on success, a {@link Connection} instance is supplied via the {@code connectHandler} instance

close
void close()

Close the client. <p> Any sockets which have not been closed manually will be closed here. The close is asynchronous and may not complete until some time after the method has returned.

isConnected
bool isConnected()
Undocumented in source.
getId
int getId()
Undocumented in source.
getHost
string getHost()
Undocumented in source.
getPort
int getPort()
Undocumented in source.
getOptions
NetClientOptions getOptions()
Undocumented in source.
setOptions
NetClient setOptions(NetClientOptions options)
Undocumented in source.
getCodec
Codec getCodec()
Undocumented in source.
setCodec
NetClient setCodec(Codec codec)
Undocumented in source.
getHandler
NetConnectionHandler getHandler()
Undocumented in source.
setHandler
NetClient setHandler(NetConnectionHandler handler)
Undocumented in source.
onClosed
alias onClosed = setOnClosed
Undocumented in source.
setOnClosed
void setOnClosed(void delegate() handler)
Undocumented in source.

Meta