[fpc-pascal] SocketError

Marco van de Voort marcov at stack.nl
Mon Jul 7 13:16:45 CEST 2008


> I have a simple TCP program and I want to see when the client breaks the 
> line.
> With the 205 compiler this is not a problem SocketError tells me, but with 
> the 220 compiler nothing happens. Do I have to do something else?
> 
> When compiled to 386 SocketError always returns 0, but when compiled to 
> ARM SocketError always returns 11.
> Why the difference.

Ask your OS vendor. These are OS errors.

But:

11 is iirc EAGAIN, which means "try again", which is due to a potential
deadlock in the kernel not being handled properly. 



More information about the fpc-pascal mailing list