摘要:
int zero = 0;setsockopt( ov->m_Socket, SOL_SOCKET, SO_SNDBUF, (char *) &zero, sizeof zero );setsockopt( ov->m_Socket, SOL_SOCKET, SO_RCVBUF, (char *) &zero, sizeof zero ); 阅读全文
摘要:
nResult = setsockopt( lpov->m_Socket, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT, (char *)&lpov->ListenSocket, sizeof(lpov->ListenSocket) ); 阅读全文
摘要:
int locallen, remotelen;sockaddr_in *plocal = 0, *premote = 0;GetAcceptExSockaddrs( lpov->szBuffer.buf, 0,//lpov->szBuffer.len, sizeof(sockaddr_in) + 16, sizeof(sockaddr_in) + 16, (so... 阅读全文
摘要:
1DWORD dwBytesReturned = 0;2BOOL bNewBehavior = FALSE;34int ret = WSAIoctl(m_ListenSocket, SIO_UDP_CONNRESET,5 &bNewBehavior,6 sizeof (bNewBehavior),7 NULL, 0, &dwBytesReturned,8 NULL... 阅读全文