|
| int | nrf_socket (int family, int type, int protocol) |
| | Create a network socket.
|
| |
| int | nrf_close (int fildes) |
| | Close a network socket.
|
| |
| int | nrf_fcntl (int fd, int cmd, int flags) |
| | Function for controlling file descriptor options.
|
| |
| int | nrf_connect (int socket, const struct nrf_sockaddr *address, nrf_socklen_t address_len) |
| | Connect a socket.
|
| |
| ssize_t | nrf_send (int socket, const void *buffer, size_t length, int flags) |
| | Send a message on a connected socket.
|
| |
| ssize_t | nrf_sendto (int socket, const void *message, size_t length, int flags, const struct nrf_sockaddr *dest_addr, nrf_socklen_t dest_len) |
| | Send a message on a socket.
|
| |
| ssize_t | nrf_recv (int socket, void *buffer, size_t length, int flags) |
| | Receive a message from a connected socket.
|
| |
| ssize_t | nrf_recvfrom (int socket, void *restrict buffer, size_t length, int flags, struct nrf_sockaddr *restrict address, nrf_socklen_t *restrict address_len) |
| | Receive a message from a socket.
|
| |
| int | nrf_poll (struct nrf_pollfd fds[], nrf_nfds_t nfds, int timeout) |
| | Poll multiple sockets for events.
|
| |
| int | nrf_setsockopt (int socket, int level, int option_name, const void *option_value, nrf_socklen_t option_len) |
| | Set the socket options.
|
| |
| int | nrf_getsockopt (int socket, int level, int option_name, void *restrict option_value, nrf_socklen_t *restrict option_len) |
| | Get the socket options.
|
| |
| int | nrf_bind (int socket, const struct nrf_sockaddr *address, nrf_socklen_t address_len) |
| | Bind a name to a socket.
|
| |
| int | nrf_listen (int sock, int backlog) |
| | Listen for socket connections and limit the queue of incoming connections.
|
| |
| int | nrf_accept (int socket, struct nrf_sockaddr *restrict address, nrf_socklen_t *restrict address_len) |
| | Accept a new connection a socket.
|
| |