![]() |
CSocketPool | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: SocketPool.h |
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
![]() |
SocketQueue | m_aQueue | Our queue |
![]() |
SocketMap | m_aSocketMap | Map of the existing sockets |
![]() |
BOOL | m_bClosing | Are we closing |
![]() |
int | m_iActiveSockets | Our number of sockets |
![]() |
int | m_iMaxBackQueue | Set the maximum back queue |
![]() |
int | m_iMaxSocket | Our number of sockets |
![]() |
LPSocketAllocator | m_pAllocator | Our allocator |
![]() |
CGenericCriticalSection * | m_pCSection | Our CS |
![]() |
CGenericCriticalSection * | m_pCSectionQueue | Queue CS |
![]() |
CSocketPool( const CSocketPool& rPool ) |
No copy ctor | |
![]() |
CSocketPool( int iMaxSockets, LPSocketAllocator pAllocator, int iMaxQueue=200 ) |
Ctor and dtor |
![]() |
virtual |
![]() |
void | Check if we have data in queue | |
![]() |
void | Clear() |
Clear all the data |
![]() |
BOOL | Connect( const std::string& rAddress, unsigned short usPort ) |
Add an address to connect to |
![]() |
BOOL | Connect( const std::string& rAddress, unsigned short usPort, CSocketPoolSocket* pSocket ) |
Another type of connect |
![]() |
void | SocketClosed( CSocketPoolSocket* pSocket ) |
A socket is closed |
![]() |
void | SocketConnected( CSocketPoolSocket* pSocket ) |
A socket is connection |
class CSocketPoolSocket |
ErrorHandler.h | |
SocketPoolSocket.h | |
deque | |
map |
stdafx.h | for precompiled header directive |
SocketPool.h | |
ErrorHandlerMacros.h | |
OSManager.h | |
GenericCriticalSection.h |
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |