diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-28 23:31:07 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-28 23:31:07 +0100 |
| commit | 772873104658182a5b76f5c0eed76047c62c6651 (patch) | |
| tree | 431ba9c063fab10b4356cd8c7e63c9d2e957e2d9 /ot_socket.h | |
| parent | dd0ad26ea9824b75accced2b56328cbb222c4c6d (diff) | |
With more workers blockingly waiting on udp sockets, we need to keep track of all sockets to shut them down on exit
Diffstat (limited to 'ot_socket.h')
| -rw-r--r-- | ot_socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ot_socket.h b/ot_socket.h index f73a5c9..9340d0d 100644 --- a/ot_socket.h +++ b/ot_socket.h | |||
| @@ -39,6 +39,10 @@ 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 | 41 | ||
| 42 | /* Bound how long a blocking read waits, so the thread sitting in one gets to | ||
| 43 | look at the running flag now and then */ | ||
| 44 | int socket_set_timeout(int s, int seconds); | ||
| 45 | |||
| 42 | ssize_t socket_recv(int s, void *buf, size_t len, ot_ip6 ip, uint16_t *port); | 46 | 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); | 47 | ssize_t socket_send(int s, const void *buf, size_t len, const ot_ip6 ip, uint16_t port); |
| 44 | 48 | ||
