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 61 of file ISocketHandler.h.


Constructor & Destructor Documentation

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                 }


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

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 73 of file ISocketHandler.h.

00073 {}


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