#include <errno.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/ioctl.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 bzero |
( |
|
p, |
|
|
|
n |
|
) |
| memset(p,0,n) |
| #define FD_IN_FDSET |
( |
|
FD | ) |
((FD)<FD_SETSIZE) |
| #define ifreq_size |
( |
|
pifreq | ) |
(pifreq->ifr_addr.sa_len + sizeof(pifreq->ifr_name)) |
| #define INADDR_LOOPBACK (u_long)0x7F000001 |
| #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 EPIPE |
| #define socket_ioctl |
( |
|
A, |
|
|
|
B, |
|
|
|
C |
|
) |
| ioctl(A,B,C) |
| int select |
( |
int |
n, |
|
|
fd_set * |
readfds, |
|
|
fd_set * |
writefds, |
|
|
fd_set * |
exceptfds, |
|
|
struct timeval * |
timeout |
|
) |
| |