#include <errno.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/filio.h>
#include <sys/sockio.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netdb.h>
#include <unistd.h>
Go to the source code of this file.
| #define DOES_NOT_ACCEPT_ZERO_LENGTH_UDP |
| #define FD_IN_FDSET |
( |
|
FD | ) |
((FD)<FD_SETSIZE&&(FD)>=0) |
| #define ifreq_size |
( |
|
pifreq | ) |
(sizeof(pifreq->ifr_name)) |
| #define INADDR_NONE (0xffffffff) |
| #define INVALID_SOCKET (-1) |
| #define SOCK_EACCES EACCES |
| #define SOCK_EADDRINUSE EADDRINUSE |
| #define SOCK_EADDRNOTAVAIL EADDRNOTAVAIL |
| #define SOCK_EALREADY EALREADY |
| #define SOCK_ECONNABORTED ECONNABORTED |
| #define SOCK_ECONNREFUSED ECONNREFUSED |
| #define SOCK_ECONNRESET ECONNRESET |
| #define SOCK_EINPROGRESS EINPROGRESS |
| #define SOCK_EINVAL EINVAL |
| #define SOCK_EISCONN EISCONN |
| #define SOCK_EMFILE EMFILE |
| #define SOCK_ENOBUFS ENOBUFS |
| #define SOCK_ENOTSOCK ENOTSOCK |
| #define SOCK_ETIMEDOUT ETIMEDOUT |
| #define SOCK_EWOULDBLOCK EWOULDBLOCK |
| #define SOCK_SHUTDOWN ESHUTDOWN |
| #define socket_ioctl |
( |
|
A, |
|
|
|
B, |
|
|
|
C |
|
) |
| ioctl(A,B,C) |