摘要: 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 ); 阅读全文
posted @ 2006-05-11 11:24 dannyr|一个都不能少! 阅读(1741) 评论(2) 推荐(0) 编辑
摘要: nResult = setsockopt( lpov->m_Socket, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT, (char *)&lpov->ListenSocket, sizeof(lpov->ListenSocket) ); 阅读全文
posted @ 2006-05-11 11:22 dannyr|一个都不能少! 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2006-05-11 11:19 dannyr|一个都不能少! 阅读(1047) 评论(1) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2006-05-11 11:13 dannyr|一个都不能少! 阅读(937) 评论(0) 推荐(0) 编辑