#include <unistd.h>
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | sockaddr |
Typedefs | |
typedef unsigned int | sa_family_t |
typedef uint32_t | socklen_t |
Functions | |
int | accept (int socket, struct sockaddr *address, socklen_t *address_len) |
int | bind (int socket, const struct sockaddr *address, socklen_t address_len) |
int | connect (int socket, const struct sockaddr *address, socklen_t address_len) |
int | getpeername (int socket, struct sockaddr *address, socklen_t *address_len) |
int | getsockname (int socket, struct sockaddr *address, socklen_t *address_len) |
int | getsockopt (int socket, int level, int option_name, void *option_value, socklen_t *option_len) |
int | listen (int socket, int backlog) |
ssize_t | recv (int socket, void *buffer, size_t length, int flags) |
ssize_t | recvfrom (int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len) |
ssize_t | recvmsg (int socket, struct msghdr *message, int flags) |
ssize_t | send (int socket, const void *buffer, size_t length, int flags) |
ssize_t | sendmsg (int socket, const struct msghdr *message, int flags) |
ssize_t | sendto (int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len) |
int | setsockopt (int socket, int level, int option_name, const void *option_value, socklen_t option_len) |
int | shutdown (int socket, int how) |
int | sockatmark (int socket) |
int | socket (int domain, int type, int protocol) |
int | socketpair (int domain, int type, int protocol, int socket_vector[2]) |
typedef unsigned int sa_family_t |
Definition at line 58 of file posix/sys/socket.h.
typedef uint32_t socklen_t |
Definition at line 55 of file posix/sys/socket.h.
int getsockopt | ( | int | socket, |
int | level, | ||
int | option_name, | ||
void * | option_value, | ||
socklen_t * | option_len | ||
) |
int listen | ( | int | socket, |
int | backlog | ||
) |
ssize_t recv | ( | int | socket, |
void * | buffer, | ||
size_t | length, | ||
int | flags | ||
) |
ssize_t recvfrom | ( | int | socket, |
void * | buffer, | ||
size_t | length, | ||
int | flags, | ||
struct sockaddr * | address, | ||
socklen_t * | address_len | ||
) |
ssize_t recvmsg | ( | int | socket, |
struct msghdr * | message, | ||
int | flags | ||
) |
ssize_t send | ( | int | socket, |
const void * | buffer, | ||
size_t | length, | ||
int | flags | ||
) |
ssize_t sendmsg | ( | int | socket, |
const struct msghdr * | message, | ||
int | flags | ||
) |
ssize_t sendto | ( | int | socket, |
const void * | message, | ||
size_t | length, | ||
int | flags, | ||
const struct sockaddr * | dest_addr, | ||
socklen_t | dest_len | ||
) |
int setsockopt | ( | int | socket, |
int | level, | ||
int | option_name, | ||
const void * | option_value, | ||
socklen_t | option_len | ||
) |
int shutdown | ( | int | socket, |
int | how | ||
) |
int sockatmark | ( | int | socket | ) |
int socket | ( | int | domain, |
int | type, | ||
int | protocol | ||
) |
int socketpair | ( | int | domain, |
int | type, | ||
int | protocol, | ||
int | socket_vector[2] | ||
) |