Obtaining pointer to underlying Winsock for Cygwin Unix Socket?

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Sep 4 08:49:00 GMT 2002


On Wed, Sep 04, 2002 at 03:08:14PM +0000, Sarah Lanham wrote:
> My question:
> How do I obtain the pointer to the Winsock that corresponds to a Cygwin
> Unix socket?

  #include <io.h>
  SOCKET wsock = (SOCKET) get_osfhandle (sock_fd);

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/



More information about the Cygwin mailing list