diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-26 17:06:03 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-26 17:06:03 -0400 |
commit | 056195be410229dde61286c9f316eaec48a7a550 (patch) | |
tree | 8211ee5c4962f5b7343bab5e43fceea73cd027bd /core/LAN_discovery.h | |
parent | 9d860fac795b2eeaaec1f027d0fc9d1255d1fd50 (diff) |
Fixed the multiple friends request recieved at the same time problem.
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r-- | core/LAN_discovery.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/core/LAN_discovery.h b/core/LAN_discovery.h index 7448abac..655830f9 100644 --- a/core/LAN_discovery.h +++ b/core/LAN_discovery.h | |||
@@ -1,7 +1,24 @@ | |||
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. | ||
6 | * | ||
7 | * This file is part of Tox. | ||
8 | * | ||
9 | * Tox is free software: you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation, either version 3 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * Tox is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
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/>. | ||
21 | * | ||
5 | */ | 22 | */ |
6 | 23 | ||
7 | 24 | ||
@@ -11,6 +28,9 @@ | |||
11 | 28 | ||
12 | #include "DHT.h" | 29 | #include "DHT.h" |
13 | 30 | ||
31 | #ifdef __cplusplus | ||
32 | extern "C" { | ||
33 | #endif | ||
14 | 34 | ||
15 | /*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*/ |
16 | int send_LANdiscovery(uint16_t port); | 36 | int send_LANdiscovery(uint16_t port); |
@@ -23,6 +43,8 @@ int LANdiscovery_handlepacket(uint8_t * packet, uint32_t length, IP_Port source) | |||
23 | 43 | ||
24 | 44 | ||
25 | 45 | ||
26 | 46 | #ifdef __cplusplus | |
47 | } | ||
48 | #endif | ||
27 | 49 | ||
28 | #endif | 50 | #endif |