TAsyncSocketManager

A TAsyncManager providing notificiations for socket events.

Members

Functions

addOneshotListener
void addOneshotListener(Socket socket, TAsyncEventType eventType, Duration timeout, TSocketEventListener listener)
void addOneshotListener(Socket socket, TAsyncEventType eventType, TSocketEventListener listener)

Adds a listener that is triggered once when an event of the specified type occurs, and removed afterwards.

Inherited Members

From TAsyncManager

execute
void execute(TAsyncTransport transport, void delegate() work, TCancellation cancellation)

Submits a work item to be executed asynchronously.

delay
void delay(Duration duration, void delegate() work)

Submits a delegate to be executed after a certain amount of time has passed.

stop
bool stop(Duration waitFinishTimeout)

Shuts down all background threads or other facilities that might have been started in order to execute work items. This function is typically called during program shutdown.

Meta