NetServerImpl

Constructors

this
this()
Undocumented in source.
this
this(NetServerOptions options)
Undocumented in source.
this
this(EventLoopGroup loopGroup, NetServerOptions options)
Undocumented in source.

Members

Functions

actualPort
int actualPort()
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
createServer
TcpListener createServer(EventLoop loop)
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.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
eventLoopGroup
EventLoopGroup eventLoopGroup()
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.
getOptions
NetServerOptions getOptions()
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.
isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
listen
void listen()
Undocumented in source. Be warned that the author may not have intended to support it.
listen
void listen(int port)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
void listen(string host, int port)
Undocumented in source. Be warned that the author may not have intended to support it.
setCodec
NetServer setCodec(Codec codec)
Undocumented in source. Be warned that the author may not have intended to support it.
setHandler
NetServer setHandler(NetConnectionHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bindingAddress
Address bindingAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_address
Address _address;
Undocumented in source.
_group
EventLoopGroup _group;
Undocumented in source.
_isStarted
bool _isStarted;
Undocumented in source.

Inherited Members

From NetServer

eventLoopGroup
EventLoopGroup eventLoopGroup()
Undocumented in source.
getOptions
NetServerOptions getOptions()
Undocumented in source.
getCodec
Codec getCodec()
Undocumented in source.
setCodec
NetServer setCodec(Codec codec)
Undocumented in source.
getHandler
NetConnectionHandler getHandler()

@return the handler which will handle all connections managed by this server.

setHandler
NetServer setHandler(NetConnectionHandler handler)

Sets the handler which will handle all connections managed by this server.

listen
void listen()

Start listening on the port and host as configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> The server may not be listening until some time after the call to listen has returned.

listen
void listen(string host, int port)

Start listening on the specified port and host, ignoring port and host configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> Port {@code 0} can be specified meaning "choose an random port". <p> Host {@code 0.0.0.0} can be specified meaning "listen on all available interfaces". <p> The server may not be listening until some time after the call to listen has returned.

listen
void listen(int port)

Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in the {@link hunt.net.NetServerOptions} used when creating the server. <p> Port {@code 0} can be specified meaning "choose an random port". <p> The server may not be listening until some time after the call to listen has returned.

close
void close()

Close the server. This will close any currently open connections. The close may not complete until after this method has returned.

actualPort
int actualPort()

The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port

isOpen
bool isOpen()
Undocumented in source.

Meta