BOOL CLpxStreamConnection::GetConnectResult( OUT LPDWORD lpcbSent) { _ASSERTE(INVALID_SOCKET != m_sock); BOOL fSuccess = _GetSendResult(lpcbSent); if (!fSuccess) { return FALSE; } fSuccess = CLpxAsyncSocket::SetSockOpt( SO_UPDATE_CONNECT_CONTEXT, NULL, 0); if (!fSuccess) { DBGPRT_WARN_EX(_FT("Setsockopt SO_UPDATE_ACCEPT_CONTEXT failed: ")); } return TRUE; }
BOOL CLpxStreamConnection::GetConnectResult( OUT LPDWORD lpcbSent) { _ASSERTE(INVALID_SOCKET != m_sock); BOOL fSuccess = _GetSendResult(lpcbSent); if (!fSuccess) { return FALSE; } fSuccess = CLpxAsyncSocket::SetSockOpt( SO_UPDATE_CONNECT_CONTEXT, NULL, 0); if (!fSuccess) { XTLTRACE("Setsockopt SO_UPDATE_ACCEPT_CONTEXT failed, socket=%p, error=0x%X\n", reinterpret_cast<PVOID>(m_sock), WSAGetLastError()); } return TRUE; }