|
@@ -422,6 +422,10 @@ begin
|
|
CheckSet(FDSW,sosCanWrite);
|
|
CheckSet(FDSW,sosCanWrite);
|
|
CheckSet(FDSE,sosException);
|
|
CheckSet(FDSE,sosException);
|
|
end;
|
|
end;
|
|
|
|
+ if Res<0 then
|
|
|
|
+ FLastError:=SocketError
|
|
|
|
+ else
|
|
|
|
+ FLastError:=0;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TSocketHandler.CanRead(TimeOut : Integer): Boolean;
|
|
function TSocketHandler.CanRead(TimeOut : Integer): Boolean;
|