소스 검색

* 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;
 uses sockets,errors;
 
 
 Var Addr : TInetSockAddr;
 Var Addr : TInetSockAddr;
-    S : Longint;
+ S : Longint;
     Sin,Sout : Text;
     Sin,Sout : Text;
     Line : string;
     Line : string;
     
     
@@ -29,6 +29,7 @@ begin
     readln (Sin,line);
     readln (Sin,line);
     writeln (line);
     writeln (line);
     end;
     end;
+  Shutdown(s,2);
   close (sin);
   close (sin);
   close (sout);
   close (sout);
 end.
 end.