Class CSocketPool Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: Custom Code in Source After IncludesNext page: m_aQueue    Show member index
Class Declared in:
SocketPool.h

'Overview' icon -- Shortcut to top of page. Overview

Copyright (c) 2002 Barak Weichselbaum <barak@komodia.com> All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

If you would like to receive a copy of this library outside the GNU GPL license, contact us for further details.

Contact info: Site: http://www.komodia.com Email: sales@komodia.com

Hierarchy Chart Hierarchy Chart

'Base Classes' icon -- Shortcut to top of page. Base Classes

Public base class CErrorHandler

'Data Items' icon -- Shortcut to top of page. Data Items

Private data SocketQueue m_aQueue Our queue
Private data SocketMap m_aSocketMap Map of the existing sockets
Private data BOOL m_bClosing Are we closing
Private data int m_iActiveSockets Our number of sockets
Private data int m_iMaxBackQueue Set the maximum back queue
Private data int m_iMaxSocket Our number of sockets
Private data LPSocketAllocator m_pAllocator Our allocator
Private data CGenericCriticalSection * m_pCSection Our CS
Private data CGenericCriticalSection * m_pCSectionQueue Queue CS

'Constructors' icon -- Shortcut to top of page. Constructors

Private constructor

CSocketPool( const CSocketPool& rPool )

No copy ctor
Public constructor

CSocketPool( int iMaxSockets, LPSocketAllocator pAllocator, int iMaxQueue=200 )

Ctor and dtor

'Destructors' icon -- Shortcut to top of page. Destructors

Public destructor virtual

~CSocketPool()

'Functions' icon -- Shortcut to top of page. Functions

Private function void

CheckQueue()

Check if we have data in queue
Private function void

Clear()

Clear all the data
Public function BOOL

Connect( const std::string& rAddress, unsigned short usPort )

Add an address to connect to
Public function BOOL

Connect( const std::string& rAddress, unsigned short usPort, CSocketPoolSocket* pSocket )

Another type of connect
Private function void

SocketClosed( CSocketPoolSocket* pSocket )

A socket is closed
Private function void

SocketConnected( CSocketPoolSocket* pSocket )

A socket is connection

'Friends' icon -- Shortcut to top of page. Friends

class CSocketPoolSocket

'Custom Code' icon -- Shortcut to top of page. Custom Code

'Implementation Details' icon -- Shortcut to top of page. Implementation Details

File(s)
C:\dev\Komodia\SocketPool.cpp
C:\dev\Komodia\SocketPool.h
Header Includes
ErrorHandler.h     
SocketPoolSocket.h     
deque     
map     
Source Includes
stdafx.h     for precompiled header directive
SocketPool.h     
ErrorHandlerMacros.h     
OSManager.h     
GenericCriticalSection.h     
Owner
tcpip4
Last Modified
25/01/2003 5:02:25 PM

Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.