ISocketHandler::PoolSocket Class ReferenceConnection pool class for internal use by the ISocketHandler.
More...
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| PoolSocket (ISocketHandler &h, Socket *src) | |
| void | OnRead () |
| Called when there is something to be read from the file descriptor. | |
| void | OnOptions (int, int, int, SOCKET) |
| Called when a client socket is created, to set socket options. | |
Definition at line 68 of file ISocketHandler.h.
| ISocketHandler::PoolSocket::PoolSocket | ( | ISocketHandler & | h, | |
| Socket * | src | |||
| ) | [inline] |
Definition at line 71 of file ISocketHandler.h.
00071 : Socket(h) { 00072 CopyConnection( src ); 00073 SetIsClient(); 00074 }
| void ISocketHandler::PoolSocket::OnRead | ( | ) | [inline, virtual] |
Called when there is something to be read from the file descriptor.
Reimplemented from Socket.
Definition at line 76 of file ISocketHandler.h.
References LOG_LEVEL_FATAL.
00076 { 00077 Handler().LogError(this, "OnRead", 0, "data on hibernating socket", LOG_LEVEL_FATAL); 00078 SetCloseAndDelete(); 00079 }
| void ISocketHandler::PoolSocket::OnOptions | ( | int | family, | |
| int | type, | |||
| int | protocol, | |||
| SOCKET | s | |||
| ) | [inline, virtual] |
Called when a client socket is created, to set socket options.
| family | AF_INET, AF_INET6, etc | |
| type | SOCK_STREAM, SOCK_DGRAM, etc | |
| protocol | Protocol number (tcp, udp, sctp, etc) | |
| s | Socket file descriptor |
Implements Socket.
Definition at line 80 of file ISocketHandler.h.
1.4.4