This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setting socket option SO_RCVTIMEO doesn't affect blocking behavio r of recvfrom


On Wed, Jan 15, 2003 at 09:40:55AM -0600, Lane, Frank L wrote:
> Wanting to keep things as simple as possible I thought of using setsockopt
> to force a 10 second timeout on the blocking call to recvfrom.  The level
> used was SOL_SOCKET and the option was SO_RECVTIMEO with the time struct
> loaded with a 10 for the seconds member.  The behavior of the application
> appears unchanged by the call to setsockopt.
> [...]
> Any help will be appreciated.

SO_RECVTIMEO isn't supported by WinSock, unfortunately.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]