TcpListener

Constructors

this
this(EventLoop loop, AddressFamily family, size_t bufferSize)
Undocumented in source.

Members

Functions

bind
TcpListener bind(string ip, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
TcpListener bind(ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
TcpListener bind(Address addr)
Undocumented in source. Be warned that the author may not have intended to support it.
bindingAddress
Address bindingAddress()
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.
listen
TcpListener listen(int backlog)
Undocumented in source. Be warned that the author may not have intended to support it.
onConnectionAccepted
TcpListener onConnectionAccepted(AcceptEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onPeerCreating
TcpListener onPeerCreating(PeerCreateHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
void onRead()
Undocumented in source. Be warned that the author may not have intended to support it.
onShutdown
TcpListener onShutdown(EventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
reusePort
TcpListener reusePort(bool use)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_shutdownHandler
EventHandler _shutdownHandler;
Undocumented in source.
acceptHandler
AcceptEventHandler acceptHandler;

event handlers

closeHandler
SimpleEventHandler closeHandler;
Undocumented in source.
peerCreateHandler
PeerCreateHandler peerCreateHandler;
Undocumented in source.

Meta