* Added shutdown() call before close

This commit is contained in:
michael 2000-01-21 09:15:38 +00:00
parent b4f654100d
commit 65b9717fb3

View File

@ -3,7 +3,7 @@ program pfinger;
uses sockets,errors;
Var Addr : TInetSockAddr;
S : Longint;
S : Longint;
Sin,Sout : Text;
Line : string;
@ -29,6 +29,7 @@ begin
readln (Sin,line);
writeln (line);
end;
Shutdown(s,2);
close (sin);
close (sout);
end.