这种基本函数MSDN是讲解的就已经很详细了,还有demo,别恐惧英文,要学就要先看,然后用这些来问问题会更好一些 lpfnCondition The address of an optional, application-specified condition function that will make an accept/reject decision based on the caller information passed in as parameters, and optionally create or join a socket group by assigning an appropriate value to the result parameter g of this function. If this parameter is NULL, then no condition function is called.dwCallbackData Callback data passed back to the application-specified condition function as the value of the dwCallbackData parameter passed to the condition function. This parameter is only applicable if the lpfnCondition parameter is not NULL. This parameter is not interpreted by Windows Sockets.
lpfnCondition
The address of an optional, application-specified condition function that will make an accept/reject decision based on the caller information passed in as parameters, and optionally create or join a socket group by assigning an appropriate value to the result parameter g of this function. If this parameter is NULL, then no condition function is called.dwCallbackData
Callback data passed back to the application-specified condition function as the value of the dwCallbackData parameter passed to the condition function. This parameter is only applicable if the lpfnCondition parameter is not NULL. This parameter is not interpreted by Windows Sockets.
我发现异步套接字不一定得使用WSA开头的一些函数,直接使用accept和connect也可以。
如果一定要使用WSA开头的函数,一些不确定的参数直接填NULL就可以了。