2012-11-09 22:36:55 +00:00
|
|
|
struct msghdr
|
|
|
|
{
|
|
|
|
void *msg_name;
|
2014-03-11 21:21:38 +00:00
|
|
|
socklen_t msg_namelen;
|
2012-11-09 22:36:55 +00:00
|
|
|
struct iovec *msg_iov;
|
2014-03-11 21:21:38 +00:00
|
|
|
int msg_iovlen;
|
2012-11-09 22:36:55 +00:00
|
|
|
void *msg_control;
|
2014-03-11 21:21:38 +00:00
|
|
|
socklen_t msg_controllen;
|
|
|
|
int msg_flags;
|
2012-11-09 22:36:55 +00:00
|
|
|
};
|
|
|
|
|
2012-11-18 01:38:41 +00:00
|
|
|
struct cmsghdr
|
|
|
|
{
|
|
|
|
socklen_t cmsg_len;
|
|
|
|
int cmsg_level;
|
|
|
|
int cmsg_type;
|
|
|
|
};
|
|
|
|
|
2012-11-09 22:36:55 +00:00
|
|
|
#define SO_DEBUG 1
|
|
|
|
#define SO_REUSEADDR 2
|
|
|
|
#define SO_TYPE 3
|
|
|
|
#define SO_ERROR 4
|
|
|
|
#define SO_DONTROUTE 5
|
|
|
|
#define SO_BROADCAST 6
|
|
|
|
#define SO_SNDBUF 7
|
|
|
|
#define SO_RCVBUF 8
|
|
|
|
#define SO_KEEPALIVE 9
|
|
|
|
#define SO_OOBINLINE 10
|
|
|
|
#define SO_NO_CHECK 11
|
|
|
|
#define SO_PRIORITY 12
|
|
|
|
#define SO_LINGER 13
|
|
|
|
#define SO_BSDCOMPAT 14
|
2013-04-01 17:54:39 +00:00
|
|
|
#define SO_REUSEPORT 15
|
2012-11-09 22:36:55 +00:00
|
|
|
#define SO_RCVLOWAT 16
|
|
|
|
#define SO_SNDLOWAT 17
|
|
|
|
#define SO_RCVTIMEO 18
|
|
|
|
#define SO_SNDTIMEO 19
|
|
|
|
#define SO_PASSCRED 20
|
|
|
|
#define SO_PEERCRED 21
|
2015-07-02 09:28:41 +00:00
|
|
|
#define SO_ACCEPTCONN 30
|
2015-07-02 09:29:00 +00:00
|
|
|
#define SO_SNDBUFFORCE 32
|
|
|
|
#define SO_RCVBUFFORCE 33
|
2015-07-02 09:28:41 +00:00
|
|
|
#define SO_PROTOCOL 38
|
|
|
|
#define SO_DOMAIN 39
|