summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.h
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-12 18:39:21 +0200
committerCoren[m] <Break@Ocean>2013-09-12 18:39:21 +0200
commit591d6c70c635406830486deb561343e4dc06af2a (patch)
treee427dc378ad3f2c0744249896d3e165063aae7be /toxcore/LAN_discovery.h
parent0cfbe004ef30e5a601f965e625ab42a490e13e15 (diff)
network.*:
- addr_resolv(_or_parse_ip)(): added an optional parameter to return both an IPv6 and an IPv4 address if requested address family was AF_UNSPEC - logging of unhandled packets DHT.c: - bootstrap_from_address(): use the additional return from addr_resolv_or_parse_ip() to bootstrap in both network types at once Lossless_UDP_testclient.c: - main(): adapt to signature change of addr_resolve() Messenger.c. LAN_discovery.h: - lost a htons(), readded - moved LAN_DISCOVERY_INTERVAL #define into LAN_discovery.h LAN_discovery.c: - added IPv4-in-IPv6 local address test
Diffstat (limited to 'toxcore/LAN_discovery.h')
-rw-r--r--toxcore/LAN_discovery.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h
index 78990936..a0789956 100644
--- a/toxcore/LAN_discovery.h
+++ b/toxcore/LAN_discovery.h
@@ -35,6 +35,8 @@
35#include <linux/netdevice.h> 35#include <linux/netdevice.h>
36#endif 36#endif
37 37
38/* standard interval in seconds between LAN discovery packet sending. */
39#define LAN_DISCOVERY_INTERVAL 60
38 40
39/* Send a LAN discovery pcaket to the broadcast address with port port. */ 41/* Send a LAN discovery pcaket to the broadcast address with port port. */
40int send_LANdiscovery(uint16_t port, Net_Crypto *c); 42int send_LANdiscovery(uint16_t port, Net_Crypto *c);