diff options
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r-- | core/LAN_discovery.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/LAN_discovery.h b/core/LAN_discovery.h index cca5bd30..3c056ba6 100644 --- a/core/LAN_discovery.h +++ b/core/LAN_discovery.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* LAN_discovery.h | 1 | /* LAN_discovery.h |
2 | * | 2 | * |
3 | * LAN discovery implementation. | 3 | * LAN discovery implementation. |
4 | * | 4 | * |
5 | * Copyright (C) 2013 Tox project All Rights Reserved. | 5 | * Copyright (C) 2013 Tox project All Rights Reserved. |
6 | * | 6 | * |
7 | * This file is part of Tox. | 7 | * This file is part of Tox. |
@@ -18,12 +18,12 @@ | |||
18 | * | 18 | * |
19 | * You should have received a copy of the GNU General Public License | 19 | * You should have received a copy of the GNU General Public License |
20 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 20 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | 24 | ||
25 | #ifndef LAN_DISCOVERY_H | 25 | #ifndef LAN_DISCOVERY_H |
26 | #define LAN_DISCOVERY_H | 26 | #define LAN_DISCOVERY_H |
27 | 27 | ||
28 | 28 | ||
29 | #include "DHT.h" | 29 | #include "DHT.h" |
@@ -32,14 +32,14 @@ | |||
32 | extern "C" { | 32 | extern "C" { |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | /*Send a LAN discovery pcaket to the broadcast address with port port*/ | 35 | /*Send a LAN discovery pcaket to the broadcast address with port port*/ |
36 | int send_LANdiscovery(uint16_t port); | 36 | int send_LANdiscovery(uint16_t port); |
37 | 37 | ||
38 | 38 | ||
39 | /* if we receive a packet we call this function so it can be handled. | 39 | /* if we receive a packet we call this function so it can be handled. |
40 | return 0 if packet is handled correctly. | 40 | return 0 if packet is handled correctly. |
41 | return 1 if it didn't handle the packet or if the packet was shit. */ | 41 | return 1 if it didn't handle the packet or if the packet was shit. */ |
42 | int LANdiscovery_handlepacket(uint8_t *packet, uint32_t length, IP_Port source); | 42 | int LANdiscovery_handlepacket(uint8_t *packet, uint32_t length, IP_Port source); |
43 | 43 | ||
44 | 44 | ||
45 | 45 | ||