ServerImpl

Undocumented in source.

Constructors

this
this(E args)
Undocumented in source.

Members

Functions

handler
void delegate(TCPEvent) handler(AsyncTCPConnection conn)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

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

Inherited Members

From ServerBase

options
ServerOptions options [@property getter]

Gets the server's options.

eventLoop
EventLoop eventLoop [@property getter]

Gets the server's event loop. It should be used to run the server.

router
Router router [@property getter]

Gets the server's router.

defaultPort
ushort defaultPort [@property getter]

Gets the server's default port.

host
void host(string ip, ushort port)
void host(string ip)

Binds the server to the given address.

run
void run(bool delegate() condition)

Calls eventLoop.loop until the given condition is true.

run
void run()

Calls eventLoop.loop in an infinite loop.

handler
void delegate(TCPEvent) handler(AsyncTCPConnection conn)
Undocumented in source.

Meta