TcpListener

Constructors

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

Members

Functions

accepted
TcpListener accepted(AcceptEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
blocking
void blocking(bool flag)
Undocumented in source. Be warned that the author may not have intended to support it.
blocking
bool blocking()
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.
error
TcpListener error(EventErrorHandler handler)
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.
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 flag)

https://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

https://www.cnblogs.com/xybaby/p/7341579.html

https://rextester.com/BUAFK86204

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.
errorHandler
EventErrorHandler errorHandler;
Undocumented in source.
peerCreateHandler
PeerCreateHandler peerCreateHandler;
Undocumented in source.

Meta