diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-17 20:48:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-17 20:48:59 -0700 |
commit | b5c11a1f4926369add9087d5f739bcd75e6bea46 (patch) | |
tree | c347318eec20581d60d327d188dbc977a545a433 /system/include/sys/socket.h | |
parent | 291b5d29d568cc94a598df46011b80c8f0dc8d38 (diff) |
various include/ additions
Diffstat (limited to 'system/include/sys/socket.h')
-rw-r--r-- | system/include/sys/socket.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/include/sys/socket.h b/system/include/sys/socket.h index 95a0635a..68e06509 100644 --- a/system/include/sys/socket.h +++ b/system/include/sys/socket.h @@ -1,5 +1,9 @@ /* */ +#define SOMAXCONN 128 +#define PF_INET 2 +#define SO_BROADCAST 6 + #define AF_UNSPEC 100 #define SOCK_STREAM 200 #define SOL_SOCKET 50 @@ -38,3 +42,14 @@ ssize_t send(int s, const void *buf, size_t len, int flags); int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); ssize_t sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); +struct msghdr +{ + void *msg_name; + socklen_t msg_namelen; + struct iovec *msg_iov; + size_t msg_iovlen; + void * msg_control; + size_t msg_controllen; + int msg_flags; +}; + |