跃然一笑
int buflen = 65536*10;设置读缓存大小if(0!=setsockopt(m_sendUdpSock,SOL_SOCKET,SO_RCVBUF,&buflen,4)){return OS_ERROR;}设置写缓存大小if(0!=setsockopt(m_sendUdpSock,SOL_SOCKET,SO_SNDBUF,&buflen,4)){return OS_ERROR;}socklen_t getnumlen=4;读取写缓存大小if(0!=getsockopt(g_sendUdpSock,SOL_SOCKET,SO_RCVBUF,&buflen,&getnumlen)){printf("\n%s\n",strerror(errno));return OS_ERROR;