22#include "ove_config.h"
int ove_hal_netif_up(ove_netif_t netif, const void *cfg)
Backend: bring the network interface up.
void ove_hal_netif_deinit(ove_netif_t netif)
Backend: de-initialise the network interface.
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_open(ove_socket_t sock, int af, int type)
Backend: open a socket (called by ove_socket_open).
int ove_hal_socket_accept(ove_socket_t sock, ove_socket_t client, uint64_t timeout_ns)
Backend: accept an incoming connection.
void ove_hal_socket_close(ove_socket_t sock)
Backend: close a 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_bind(ove_socket_t sock, const void *addr)
Backend: bind to a local address.
int ove_hal_netif_init(ove_netif_t netif)
Backend: initialise the network interface.
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_listen(ove_socket_t sock, int backlog)
Backend: listen for incoming connections.
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_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.
void ove_hal_netif_down(ove_netif_t netif)
Backend: tear down the network interface.
int ove_hal_dns_resolve(const char *hostname, void *addr, uint64_t timeout_ns)
Backend: resolve a hostname to an address.
struct ove_netif * ove_netif_t
Opaque handle for a network interface.
Definition types.h:250
struct ove_socket * ove_socket_t
Opaque handle for a network socket.
Definition types.h:247