예제 #1
0
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;
}
예제 #2
0
BOOL CTcpAgent::SetConnectionReserved2(CONNID dwConnID, PVOID pReserved2)
{
	TSocketObj* pSocketObj = FindSocketObj(dwConnID);
	return SetConnectionReserved2(pSocketObj, pReserved2);
}