The sample for 'access' from the manual drives me crazy.
http://www.freepascal.org/docs-html/rtl/sockets/fpaccept.html
S:=fpSocket (AF_INET,SOCK_STREAM,0);
if SocketError<>0 then
(* ERROR! SHOULD BE "IF S = -1" *)
(* (SocketError can be 25 while S is <> -1, and this signals success) *)
if fpBin
Sorry, I meant accept, not access.
Am 30.09.2015 um 11:10 schrieb Klaus Hartnegg:
http://www.freepascal.org/docs-html/rtl/sockets/fpaccept.html
if Accept(S,FromName,Sin,Sout) then
(* WARNING: Accept is deprecated *)
(* ERROR: fromname contains nonsense characters *)
Sock2Text(S,Sin,Sout);
Klaus Hartnegg wrote on Wed, 30 Sep 2015:
My conclusion from these two is that Accept and Sock2Text are more
than deprecated, they are broken (in version 2.6.4 for Linux).
We have a test for it in the regression test suite that works fine in
our regression test runs on most if not all plat