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.
Threads
TcpListener Threads(size_t ioThreads)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_ioThreads
size_t _ioThreads;
Undocumented in source.
_isBinded
bool _isBinded;
Undocumented in source.
_isBlocking
bool _isBlocking;
Undocumented in source.
_isSslEnabled
bool _isSslEnabled;
Undocumented in source.
_loopThreadPool
EventLoopThreadPool _loopThreadPool;
Undocumented in source.
_shutdownHandler
EventHandler _shutdownHandler;
Undocumented in source.
_tcpStreamoption
TcpStreamOptions _tcpStreamoption;
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