فهرست منبع

* Added shutdown() call before close

michael 25 سال پیش
والد
کامیت
65b9717fb3
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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.