WSAEWOULDBLOCK The socket is ed as nonblocking and the requested operation would block.if your return error is WSAEWOULDBLOCK,you should set you socket could be blocked. if there are to many data to send ,and the os have no enough ability to operate it,block occur
int sended = 0;
while(sended < 200000)
{
int r = send(P+sended ,200000);
if(r<0)
{
//错误
break;}
sended += r;
}
if there are to many data to send ,and the os have no enough ability to operate it,block occur