delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/19/09:44:14

From: rhg AT cps DOT com (Richard H. Gumpertz)
Subject: b18 sys/socket.h: corrections
19 Nov 1997 09:44:14 -0800 :
Message-ID: <34731DE7.7144.cygnus.gnu-win32@cps.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

PROBLEM 1: The b18 version of sys/socket.h declares the second
parameter of cygwin32_recvfrom to be char *.  This should be changed
to void * as was done for all the other calls that take buffers (such
as cygwin32_recv).

PROBLEM 2: This same sys/socket.h does not define the SO_* macros.
The Unix versions of that file usually do define them.  Should
the following definitions, or something equivalent, be added?
    #define SO_SNDBUF   0x1001  /* send buffer size */
    #define SO_RCVBUF   0x1002  /* receive buffer size */
    #define SO_SNDLOWAT 0x1003  /* send low-water mark */
    #define SO_RCVLOWAT 0x1004  /* receive low-water mark */
    #define SO_SNDTIMEO 0x1005  /* send timeout */
    #define SO_RCVTIMEO 0x1006  /* receive timeout */
    #define SO_ERROR    0x1007  /* get error status and clear */
    #define SO_TYPE     0x1008  /* get socket type */
Is there another, perhaps better, way to allow setsockopt and
getsockopt to be called that I have overlooked?
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019