浏览代码

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