[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Detect RST when using non blocking read.
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Detect RST when using non blocking read. |
Date: |
Mon, 7 May 2012 17:55:25 +0200 |
"Karlsson, Johnny" <address@hidden> wrote:
> Ok, that seems much better. But one more question .. You write that
> there is a global variable 'errno', but isn't there one errno variable
> for each socket? If so how do I access it?
You can read that by calling getsockopt() with level SOL_SOCKET and optname
SO_ERROR, where optval is a pointer to an int. This is standard socket
behaviour, too!
Simon