From 952da5949f677e932f2a48a5474210df571472fb Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 29 Nov 2026 00:34:40 +0100 Subject: Warn about udp addresses already taken by other tracker instances --- src/ot_socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ot_socket.h') diff --git a/src/ot_socket.h b/src/ot_socket.h index 5c1d840..33446e4 100644 --- a/src/ot_socket.h +++ b/src/ot_socket.h @@ -32,6 +32,8 @@ int socket_can_balance(void); int socket_tcp_listen(const ot_ip6 ip, uint16_t port, socket_sharing sharing); int socket_udp_bind(const ot_ip6 ip, uint16_t port, socket_sharing sharing); +int socket_udp_is_taken(const ot_ip6 ip, uint16_t port); + int socket_tcp_connect(const ot_ip6 srcip, uint16_t srcport, const ot_ip6 dstip, uint16_t dstport); int socket_is_connected(int s); int socket_accept(int s, ot_ip6 ip, uint16_t *port); -- cgit v1.3