diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:23:39 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:23:39 +0100 |
| commit | 31d2586e3296d424e51848ada963299b0da89324 (patch) | |
| tree | 203190931bc0d189653570d2ce526b1eb0695cb9 /ot_socket.h | |
| parent | cbf4b60df6c6c8c7208dc29708677d24b2724deb (diff) | |
Defer accepts until some data actually is there
Diffstat (limited to 'ot_socket.h')
| -rw-r--r-- | ot_socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
| 38 | int socket_is_connected(int s); | 38 | int socket_is_connected(int s); |
| 39 | int socket_accept(int s, ot_ip6 ip, uint16_t *port); | 39 | int socket_accept(int s, ot_ip6 ip, uint16_t *port); |
| 40 | int socket_set_blocking(int s, int blocking); | 40 | int socket_set_blocking(int s, int blocking); |
| 41 | int socket_defer_accept(int s); | ||
| 41 | 42 | ||
| 42 | ssize_t socket_recv(int s, void *buf, size_t len, ot_ip6 ip, uint16_t *port); | 43 | ssize_t socket_recv(int s, void *buf, size_t len, ot_ip6 ip, uint16_t *port); |
| 43 | ssize_t socket_send(int s, const void *buf, size_t len, const ot_ip6 ip, uint16_t port); | 44 | ssize_t socket_send(int s, const void *buf, size_t len, const ot_ip6 ip, uint16_t port); |
