Logo
~Sockets~
~Examples~
~Contact~


ISocketHandler::PoolSocket Class Reference
[Internal utility]

Connection pool class for internal use by the ISocketHandler. More...

#include <ISocketHandler.h>

Inheritance diagram for ISocketHandler::PoolSocket:
Collaboration diagram for ISocketHandler::PoolSocket:

List of all members.


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.

Detailed Description

Connection pool class for internal use by the ISocketHandler.

Definition at line 68 of file ISocketHandler.h.


Constructor & Destructor Documentation

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                 }


Member Function Documentation

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.

Parameters:
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.

00080 {}


The documentation for this class was generated from the following file:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4