![]() |
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 61 of file ISocketHandler.h.
ISocketHandler::PoolSocket::PoolSocket | ( | ISocketHandler & | h, | |
Socket * | src | |||
) | [inline] |
Definition at line 64 of file ISocketHandler.h.
00064 : Socket(h) { 00065 CopyConnection( src ); 00066 SetIsClient(); 00067 }
void ISocketHandler::PoolSocket::OnRead | ( | ) | [inline, virtual] |
Called when there is something to be read from the file descriptor.
Reimplemented from Socket.
Definition at line 69 of file ISocketHandler.h.
References LOG_LEVEL_FATAL.
00069 { 00070 Handler().LogError(this, "OnRead", 0, "data on hibernating socket", LOG_LEVEL_FATAL); 00071 SetCloseAndDelete(); 00072 }
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 73 of file ISocketHandler.h.