[fpc-pascal] Socket error messages

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Tue Sep 24 12:07:08 CEST 2013


>> How does one convert from the numeric value returned by SocketError to 
>> the name of the error (specifically, to e.g. EsockEINVAL rather than 
>> EsysEINVAL, i.e. to be in line with the definition of functions like 
>> fpbind)?

 > use the errors unit. (specific for unix)
 >
 > It has a functiun strerror()

But aren't those EsysEINVAL rather than EsockEINVAL etc.?

>> I notice that the example for fpconnect at 
>> http://lazarus-ccr.sourceforge.net/docs/rtl/sockets/fpconnect.html 
>> actually describes a variant of Connect that's not documented for 
>> fpconnect.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list