|
Data Structures |
struct | sockaddr |
struct | mac_addr |
struct | ether_addr |
struct | sockaddr_mac |
struct | sockaddr_un |
struct | s_recvfrom_args |
struct | s_sendto_args |
Defines |
#define | AF_LINK 0 |
#define | AF_INET 1 |
#define | AF_LOCAL 2 |
#define | PF_INET 0 |
#define | PF_PACKET 1 |
#define | SOCK_STREAM 0 |
#define | SOCK_DGRAM 1 |
#define | SOCK_RAW 2 |
#define | MAC_ADDR_SIZE 6 |
#define | MSG_OOB (1<<0) |
#define | MSG_PEEK (1<<1) |
#define | MSG_WAITALL (1<<2) |
#define | MSG_TRUNC (1<<3) |
#define | MSG_ERRQUEUE (1<<4) |
#define | MSG_EOR (1<<5) |
#define | MSG_CTRUNC (1<<6) |
#define | MSG_DONTWAIT (1<<7) |
Typedefs |
typedef size_t | socklen_t |
typedef sockaddr | t_sockaddr |
Functions |
int | socket (int domain, int type, int protocol) |
int | bind (int sockfd, struct sockaddr *my_addr, size_t addrlen) |
ssize_t | recvfrom (int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen) |
ssize_t | sendto (int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) |
int | connect (int s, const struct sockaddr *name, socklen_t namelen) |
int | getsockname (int s, struct sockaddr *name, socklen_t *namelen) |
int | listen (int s, int backlog) |
int | accept (int s, struct sockaddr *addr, socklen_t *addrlen) |
int | getpeername (int s, struct sockaddr *name, socklen_t *namelen) |
char * | inet_ntoa (struct in_addr in) |
int | inet_aton (const char *cp, struct in_addr *inp) |
int | inet_addr (const char *cp) |
char * | mac_ntoa (struct mac_addr mac) |
int | mac_aton (const char *cp, struct mac_addr *macp) |