///windows
SetSockOpt(SO_REUSEADDR,(LPCTSTR)&bReuse,sizeof(BOOL));
setsockopt(m_SendSocket,SOL_SOCKET,SO_REUSEADDR,(char *)&flag,sizeof(flag));
BOOL m_bOptVal;
m_bOptVal=TRUE;
setsockopt(m_sockServer,SOL_SOCKET,SO_REUSEADDR,(char *)&m_bOptVal,sizeof(BOOL));
阅读(425) | 评论(0) | 转发(0) |