SimpleSelector

You cannot manually remove data sockets, they must be shutdown to be removed. This is so the select loops will not be messed up.

Constructors

this
this(size_t bufferSize, T initialHandlers)
Undocumented in source.

Members

Functions

addDataSocket
void addDataSocket(Socket socket, DataSocketHandler handler)

Note: this method must add the socket to the end of the socket list in order to not mess up the select loop

addSocket
void addSocket(Socket socket, SocketHandler handler)

Note: this method must add the socket to the end of the socket list in order to not mess up the select loop

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

Variables

bufferSize
size_t bufferSize;
Undocumented in source.
dataHandlers
ArrayList!DataSocketAndHandler dataHandlers;
Undocumented in source.
handlers
ArrayList!SocketAndHandler handlers;
Undocumented in source.

Inherited Members

From ISocketSelector

addSocket
void addSocket(Socket socket, SocketHandler handler)
Undocumented in source.
addDataSocket
void addDataSocket(Socket socket, DataSocketHandler handler)
Undocumented in source.

Meta