Selector

Undocumented in source.

Constructors

this
this(TcpListener listener, OnConnected onConnected, OnDisConnected onDisConnected, OnReceive onReceive, OnSendCompleted onSendCompleted, OnSocketError onSocketError, int workerThreadNum)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

accept
void accept()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
handleEvent
void handleEvent()
Undocumented in source.
read
void read(int fd)
Undocumented in source. Be warned that the author may not have intended to support it.
register
bool register(int fd, EventType et)
Undocumented in source.
removeClient
void removeClient(int fd, int err)
Undocumented in source. Be warned that the author may not have intended to support it.
reregister
bool reregister(int fd, EventType et)
Undocumented in source.
startLoop
void startLoop()
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
unregister
bool unregister(int fd)
Undocumented in source.
write
void write(int fd)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

beginAccept
void beginAccept(Selector selector)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_eventHandle
int _eventHandle;
Undocumented in source.
_isDisposed
bool _isDisposed;
Undocumented in source.
_listener
TcpListener _listener;
Undocumented in source.
onReceive
OnReceive onReceive;
Undocumented in source.
onSendCompleted
OnSendCompleted onSendCompleted;
Undocumented in source.
workerPool
ThreadPool workerPool;
Undocumented in source.

Meta