summaryrefslogtreecommitdiff
path: root/src/ot_socket.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-29 00:34:40 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-29 00:34:40 +0100
commit952da5949f677e932f2a48a5474210df571472fb (patch)
treed33525d29ee18b65b9e5df39d2e2fb1f5a868ca2 /src/ot_socket.h
parentf08e7473ac51a024f49e5101fbc5e150fecef2d4 (diff)
Warn about udp addresses already taken by other tracker instancesHEADmaster
Diffstat (limited to 'src/ot_socket.h')
-rw-r--r--src/ot_socket.h2
1 files changed, 2 insertions, 0 deletions
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);
32int socket_tcp_listen(const ot_ip6 ip, uint16_t port, socket_sharing sharing); 32int socket_tcp_listen(const ot_ip6 ip, uint16_t port, socket_sharing sharing);
33int socket_udp_bind(const ot_ip6 ip, uint16_t port, socket_sharing sharing); 33int socket_udp_bind(const ot_ip6 ip, uint16_t port, socket_sharing sharing);
34 34
35int socket_udp_is_taken(const ot_ip6 ip, uint16_t port);
36
35int socket_tcp_connect(const ot_ip6 srcip, uint16_t srcport, const ot_ip6 dstip, uint16_t dstport); 37int socket_tcp_connect(const ot_ip6 srcip, uint16_t srcport, const ot_ip6 dstip, uint16_t dstport);
36int socket_is_connected(int s); 38int socket_is_connected(int s);
37int socket_accept(int s, ot_ip6 ip, uint16_t *port); 39int socket_accept(int s, ot_ip6 ip, uint16_t *port);