

Public Types | |
| typedef JetByteTools::Win32::IQueueTimers::UserData | UserData |
| User data that can be passed to the TimerCallback::OnTimer() call. | |
Public Member Functions | |
| CReadTimeoutStreamSocketConnectionFilter (IAcceptStreamSocketConnectionFilters &manager, IAllocateStreamSockets &socketAllocator, JetByteTools::Win32::IQueueTimers &timerQueue) | |
| Installs the connection filter on all connections made by the supplied manager and allocates space for timer data in all sockets allocated by the supplied socket allocator and queues timers using the supplied timer queue. | |
| void | SetReadTimeout (IStreamSocket &socket, const Milliseconds timeout, TimerCallback &timerCallback, const UserData userData=0) |
| Sets a read timeout on the socket. The timeout will be set after every read is issued on the socket. | |
| void | SetSingleReadTimeout (IStreamSocket &socket, const Milliseconds timeout, TimerCallback &timerCallback, const UserData userData=0) |
| Sets a single read timeout on the socket. This can be used to set a different timeout to the 'default' timeout that is set with all read operations. Note that there's only one timeout per socket and setting this timeout cancels any pending 'default' read timeout that may have been set when the last read was issued. Usually called from the TimerCallback::OnTimer() handler to set an additional timeout after the 'default' timeout has expired. | |
| void | CancelReadTimeout (IStreamSocket &socket) |
| Cancels any pending timeouts and prevents any more timeouts being set for any subsequent read operations on the supplied socket. | |
| void | CancelPendingTimeout (IStreamSocket &socket) |
| Cancels any pending timeouts on the supplied socket. | |
Classes | |
| class | TimerCallback |
User data that can be passed to the TimerCallback::OnTimer() call.
Reimplemented from IQueueTimers::Timer.
| CReadTimeoutStreamSocketConnectionFilter | ( | IAcceptStreamSocketConnectionFilters & | manager, | |
| IAllocateStreamSockets & | socketAllocator, | |||
| JetByteTools::Win32::IQueueTimers & | timerQueue | |||
| ) |
Installs the connection filter on all connections made by the supplied manager and allocates space for timer data in all sockets allocated by the supplied socket allocator and queues timers using the supplied timer queue.
| void SetReadTimeout | ( | IStreamSocket & | socket, | |
| const Milliseconds | timeout, | |||
| TimerCallback & | timerCallback, | |||
| const UserData | userData = 0 | |||
| ) |
Sets a read timeout on the socket. The timeout will be set after every read is issued on the socket.
| void SetSingleReadTimeout | ( | IStreamSocket & | socket, | |
| const Milliseconds | timeout, | |||
| TimerCallback & | timerCallback, | |||
| const UserData | userData = 0 | |||
| ) |
Sets a single read timeout on the socket. This can be used to set a different timeout to the 'default' timeout that is set with all read operations. Note that there's only one timeout per socket and setting this timeout cancels any pending 'default' read timeout that may have been set when the last read was issued. Usually called from the TimerCallback::OnTimer() handler to set an additional timeout after the 'default' timeout has expired.
| void CancelReadTimeout | ( | IStreamSocket & | socket | ) |
Cancels any pending timeouts and prevents any more timeouts being set for any subsequent read operations on the supplied socket.
| void CancelPendingTimeout | ( | IStreamSocket & | socket | ) |
Cancels any pending timeouts on the supplied socket.
1.5.3