If CheckSocketData(hClientSocket,size)大于等于0 Then
begin
if (Recv(hThreadSocket,buffer,size,0)不等于size) then
begin
ErrorCode:=WSAGetLastError();
case ErrorCode of
....
报错处理
....
end;
end;
NT下接收上一篇说的帐号为one的记录的压缩图时
CheckSocketData(hClientSocket,size1)大于等于0
接下来Recv(hClientSocket,buffer1,size1,0)等于size1
接收帐号为two或scan时,到了接收第一个图时
CheckSocketData(hClientSocket,size1)大于等于0
接下来Recv(hClientSocket,buffer1,size1,0)却总是小于size1
WSAGetLastError()返回值为0
真是叫我百思不解