1.recv一次接收多少
看recv的返回值(0完成,<0 出错)
2.recv返回什么表示接收完成。
int recv(
SOCKET s,
char FAR* buf,
int len,
int flags
);
If no error occurs, this function returns the number of bytes received. If the connection has been gracefully closed, the return value is zero.