diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-12 11:51:47 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-12 11:51:47 -0700 |
commit | 983d36f70b9245ef021da965b355b51f69ae9dcc (patch) | |
tree | ec83885b50100e312ca2070d4f71f2e7eb753c02 /toxcore | |
parent | b37b521cd5fa9454d34cb5d5ebdc2d378529cac2 (diff) | |
parent | d95df291f0ab07e77101d550bf02abb5d267c40a (diff) |
Merge pull request #575 from FullName/DHT_bootstrap
Patch to allow DHT_bootstrap to also do LAN discovery.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/LAN_discovery.h | 2 | ||||
-rw-r--r-- | toxcore/Messenger.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h index 78990936..3e9d9de5 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 | /* 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. */ |
40 | int send_LANdiscovery(uint16_t port, Net_Crypto *c); | 42 | int send_LANdiscovery(uint16_t port, Net_Crypto *c); |
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 177b8eb0..571c7291 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -809,8 +809,6 @@ static void do_allgroupchats(Messenger *m) | |||
809 | 809 | ||
810 | /*********************************/ | 810 | /*********************************/ |
811 | 811 | ||
812 | /* Interval in seconds between LAN discovery packet sending. */ | ||
813 | #define LAN_DISCOVERY_INTERVAL 60 | ||
814 | #define PORT 33445 | 812 | #define PORT 33445 |
815 | 813 | ||
816 | /* Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds. */ | 814 | /* Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds. */ |