请教高手们,我用了非阻塞的流套接字的异步模式(WSAAsyncSelect),在我用send向服务器发大数据(4M左右)的时候,要返回WSANOBUFFER错误,为什么?怎么解决急用

解决方案 »

  1.   

    请教高手们,我用了非阻塞的流套接字的异步模式(WSAAsyncSelect),在我用send向服务器发大数据(4M左右)的时候,要返回WSAENOBUFS错误,为什么?怎么解决急用
      

  2.   

    The WSANETWORKEVENTS structure is used to store a socket's internal information about network events.typedef struct _WSANETWORKEVENTS {  long lNetworkEvents;  int iErrorCode[FD_MAX_EVENTS];
    } WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
    Members
    lNetworkEvents 
    Indicates which of the FD_XXX network events have occurred. 
    iErrorCode 
    Array that contains any associated error codes, with an array index that corresponds to the position of event bits in lNetworkEvents. The identifiers FD_READ_BIT, FD_WRITE_BIT and others can be used to index the iErrorCode array.