本帖最后由 u011529932 于 2013-07-28 00:13:41 编辑

解决方案 »

  1.   

    这个看不懂应该先打基础。不然开发起来也费劲啊。lpfnCondition:(可选的)用户提供的条件函数的进程实例地址。该函数根据参数传入的调用者信息作出接受或拒绝的决定,并通过给结果参数赋予特定的值来(可选地)创建和/或加入一个套接口组。
      

  2.   

    这种基本函数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.
      

  3.   

    谢谢!
    我发现异步套接字不一定得使用WSA开头的一些函数,直接使用accept和connect也可以。
    如果一定要使用WSA开头的函数,一些不确定的参数直接填NULL就可以了。