Re: Socket: non-blocking connect and getsockopt SO_ERROR

2011-05-17 Thread Brian Ford
On Mon, 16 May 2011, Jacob Eiler wrote: > I am experiencing an issue with getsockopt when running an application > under CygWin. > > The application (Kannel sms gateway) creates a new socket, attempt to > connect non-blocking to the other host and later calls getsockopt to > check for errors: > >

Re: Socket: non-blocking connect and getsockopt SO_ERROR

2011-05-16 Thread Corinna Vinschen
On May 16 14:43, Jacob Eiler wrote: > Hi. > > I am experiencing an issue with getsockopt when running an application > under CygWin. > > The application (Kannel sms gateway) creates a new socket, attempt to > connect non-blocking to the other host and later calls getsockopt to > check for errors

Socket: non-blocking connect and getsockopt SO_ERROR

2011-05-16 Thread Jacob Eiler
Hi. I am experiencing an issue with getsockopt when running an application under CygWin. The application (Kannel sms gateway) creates a new socket, attempt to connect non-blocking to the other host and later calls getsockopt to check for errors: s = socket(PF_INET, SOCK_STREAM, 0); ... flags =