Main socket header.
- See also
- The Open Group Base Specifications Issue 7, <sys/socket.h>
- Todo:
- Omitted from original specification for now:
- struct msghdr, struct cmesghdr, and struct linger and all related defines
- getsockopt()/setsockopt() and all related defines.
- shutdown() and all related defines.
- sockatmark()
- Author
- Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de
Definition in file socket.h.
|
int | accept (int socket, struct sockaddr *__restrict address, socklen_t *__restrict address_len) |
| Accept a new connection on a socket. More...
|
|
int | bind (int socket, const struct sockaddr *address, socklen_t address_len) |
| Bind a name to a socket. More...
|
|
int | connect (int socket, const struct sockaddr *address, socklen_t address_len) |
| Connect a socket. More...
|
|
int | getpeername (int socket, struct sockaddr *__restrict address, socklen_t *__restrict address_len) |
| Get the name of the peer socket. More...
|
|
int | getsockname (int socket, struct sockaddr *__restrict address, socklen_t *__restrict address_len) |
| Get the socket name. More...
|
|
int | listen (int socket, int backlog) |
| Listen for socket connections and limit the queue of incoming connections. More...
|
|
ssize_t | recvfrom (int socket, void *__restrict buffer, size_t length, int flags, struct sockaddr *__restrict address, socklen_t *__restrict address_len) |
| Receive a message from a socket. More...
|
|
static ssize_t | recv (int socket, void *buffer, size_t length, int flags) |
| Receive a message from a connected socket. More...
|
|
ssize_t | sendto (int socket, const void *buffer, size_t length, int flags, const struct sockaddr *address, socklen_t address_len) |
| Send a message on a socket. More...
|
|
static ssize_t | send (int socket, const void *buffer, size_t length, int flags) |
| Send a message on a socket. More...
|
|
int | socket (int domain, int type, int protocol) |
| Create an endpoint for communication. More...
|
|