Sfoglia il codice sorgente

* Added shutdown() call before close

michael 25 anni fa
parent
commit
65b9717fb3
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      docs/sockex/pfinger.pp

+ 2 - 1
docs/sockex/pfinger.pp

@@ -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.