|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|
Backend-implemented networking primitives. More...
Functions | |
| int | ove_hal_socket_open (ove_socket_t sock, int af, int type) |
| Backend: open a socket (called by ove_socket_open). | |
| void | ove_hal_socket_close (ove_socket_t sock) |
| Backend: close a socket. | |
| int | ove_hal_socket_connect (ove_socket_t sock, const void *addr, uint64_t timeout_ns) |
| Backend: connect to a remote address. | |
| int | ove_hal_socket_bind (ove_socket_t sock, const void *addr) |
| Backend: bind to a local address. | |
| int | ove_hal_socket_listen (ove_socket_t sock, int backlog) |
| Backend: listen for incoming connections. | |
| int | ove_hal_socket_accept (ove_socket_t sock, ove_socket_t client, uint64_t timeout_ns) |
| Backend: accept an incoming connection. | |
| int | ove_hal_socket_send (ove_socket_t sock, const void *data, size_t len, size_t *sent) |
| Backend: send data on a connected socket. | |
| int | ove_hal_socket_recv (ove_socket_t sock, void *buf, size_t len, size_t *received, uint64_t timeout_ns) |
| Backend: receive data from a connected socket. | |
| int | ove_hal_socket_sendto (ove_socket_t sock, const void *data, size_t len, size_t *sent, const void *dest) |
| Backend: send a datagram to a destination. | |
| int | ove_hal_socket_recvfrom (ove_socket_t sock, void *buf, size_t len, size_t *received, void *src, uint64_t timeout_ns) |
| Backend: receive a datagram and sender address. | |
| int | ove_hal_dns_resolve (const char *hostname, void *addr, uint64_t timeout_ns) |
| Backend: resolve a hostname to an address. | |
| int | ove_hal_netif_init (ove_netif_t netif) |
| Backend: initialise the network interface. | |
| void | ove_hal_netif_deinit (ove_netif_t netif) |
| Backend: de-initialise the network interface. | |
| int | ove_hal_netif_up (ove_netif_t netif, const void *cfg) |
| Backend: bring the network interface up. | |
| void | ove_hal_netif_down (ove_netif_t netif) |
| Backend: tear down the network interface. | |
Backend-implemented networking primitives.
Each RTOS backend provides these functions to bridge the portable oveRTOS socket API to the platform's native TCP/IP stack.