![]() |
Connect() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: SocketPool.h |
Declaration
BOOL Connect(
const std::string& rAddress,
unsigned short usPort);
DescriptionAdd an address to connect to
Function Body
try
{
//Allocate the socket
CSocketPoolSocket* pSocket;
//Do we have an allocator?
if (!m_pAllocator)
{
//Report it
ReportError("Connect","No allocator!");
//Exit
return FALSE;
}
//Allocate it
pSocket=(*m_pAllocator)(this);
//Try to connect
return Connect(rAddress,
usPort,
pSocket);
}
ERROR_HANDLER_RETURN("Connect",FALSE)
See Also
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. |