+ added declarations for Apple-specific socket options

* fixed up some whitespace

git-svn-id: trunk@6971 -
This commit is contained in:
Jonas Maebe 2007-03-24 12:31:52 +00:00
parent a6f503f263
commit 89be4f6d07

View File

@ -125,6 +125,9 @@ Const
SO_OOBINLINE =$0100; { leave received OOB data in line } SO_OOBINLINE =$0100; { leave received OOB data in line }
SO_REUSEPORT =$0200; { allow local address & port reuse } SO_REUSEPORT =$0200; { allow local address & port reuse }
SO_TIMESTAMP =$0400; { timestamp received dgram traffic } SO_TIMESTAMP =$0400; { timestamp received dgram traffic }
SO_ACCEPTFILTER =$1000; { there is an accept filter }
SO_DONTTRUNC =$2000; { APPLE: Retain unread data (ATOMIC proto) }
SO_WANTMORE =$4000; { APPLE: Want OOB in MSG_FLAG on receive }
{ {
* Additional options, not kept in so_options. * Additional options, not kept in so_options.
@ -138,6 +141,13 @@ Const
SO_ERROR =$1007; { get error status and clear } SO_ERROR =$1007; { get error status and clear }
SO_TYPE =$1008; { get socket type } SO_TYPE =$1008; { get socket type }
SO_NREAD =$1020; { APPLE: get 1st-packet byte count }
SO_NKE =$1021; { APPLE: Install socket-level NKE }
SO_NOSIGPIPE =$1022; { APPLE: No SIGPIPE on EPIPE }
SO_NOADDRERR =$1023; { APPLE: Returns EADDRNOTAVAIL when src is not available anymore }
SO_NWRITE =$1024; { APPLE: Get number of bytes currently in send socket buffer }
SO_LINGER_SEC =$1080; { linger on close if data present (in seconds) }
SHUT_RD =0; { shut down the reading side } SHUT_RD =0; { shut down the reading side }
SHUT_WR =1; { shut down the writing side } SHUT_WR =1; { shut down the writing side }