From 31d2586e3296d424e51848ada963299b0da89324 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 30 Oct 2026 13:23:39 +0100 Subject: Defer accepts until some data actually is there --- ot_socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ot_socket.h') diff --git a/ot_socket.h b/ot_socket.h index f73a5c9..5bbffe1 100644 --- a/ot_socket.h +++ b/ot_socket.h @@ -38,6 +38,7 @@ int socket_tcp_connect(const ot_ip6 srcip, uint16_t srcport, const ot_ip6 ds int socket_is_connected(int s); int socket_accept(int s, ot_ip6 ip, uint16_t *port); int socket_set_blocking(int s, int blocking); +int socket_defer_accept(int s); ssize_t socket_recv(int s, void *buf, size_t len, ot_ip6 ip, uint16_t *port); ssize_t socket_send(int s, const void *buf, size_t len, const ot_ip6 ip, uint16_t port); -- cgit v1.3