EnHandleResult CSSLServer::FireAccept(TSocketObj* pSocketObj) { EnHandleResult result = DoFireAccept(pSocketObj); if(result != HR_ERROR) { CSSLSession* pSession = m_sslPool.PickFreeSession(); VERIFY(SetConnectionReserved2(pSocketObj, pSession)); VERIFY(::ProcessHandShake(this, pSocketObj, pSession) == HR_OK); } return result; }
BOOL CTcpAgent::SetConnectionReserved2(CONNID dwConnID, PVOID pReserved2) { TSocketObj* pSocketObj = FindSocketObj(dwConnID); return SetConnectionReserved2(pSocketObj, pReserved2); }