|
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.
|
|
int | nrf_inet_pton (int af, const char *restrict src, void *restrict dst) |
| Convert IPv4 and IPv6 addresses between binary and text form.
|
|
const char * | nrf_inet_ntop (int af, const void *restrict src, char *restrict dst, nrf_socklen_t size) |
| Convert IPv4 and IPv6 addresses between binary and text form.
|
|
int | nrf_getaddrinfo (const char *restrict nodename, const char *restrict servname, const struct nrf_addrinfo *restrict hints, struct nrf_addrinfo **restrict res) |
| Get address information.
|
|
void | nrf_freeaddrinfo (struct nrf_addrinfo *ai) |
| Free address information returned by nrf_getaddrinfo().
|
|
int | nrf_getifaddrs (struct nrf_ifaddrs **ifa) |
| Get interface address information.
|
|
void | nrf_freeifaddrs (struct nrf_ifaddrs *ifa) |
| Free address information returned by nrf_getifaddrs().
|
|
int | nrf_setdnsaddr (int family, const void *in_addr, nrf_socklen_t in_size) |
| Set a secondary DNS address.
|
|