![]() |
CClientSocket::OnSocketConnect() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
Private Function (Not Declared) |
Declared in: TCPRelay.h |
Declaration
BOOL CClientSocket::OnSocketConnect(
int iErrorCode);
Function Body
try
{
//Do we have an error
if (iErrorCode)
{
//Delete the other socket
m_pSocket->DeleteSocketFromThread();
m_pSocket=NULL;
//Delete ourself from our thread
DeleteSocketFromThread();
//Done
return FALSE;
}
//We are connected
//Create the connection
m_aConnectionID=m_pFather->NewConnection(m_pSocket,
this);
//Set the other socket's ID
m_pSocket->SetConnectionID(m_aConnectionID);
//Done
return TRUE;
}
ERROR_HANDLER_RETURN("OnSocketConnect",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. |