summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-27 08:43:36 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-27 08:43:36 -0400
commit14b43651c10b596efc33e11739c22321c3dbc3bf (patch)
tree26310e5bb35b693d607076db57bf682387f4c7df /core/LAN_discovery.h
parent1a6446266c9727e5c95e18d5e44157fd5a60900f (diff)
Ran the code through: astyle --style=linux
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r--core/LAN_discovery.h22
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 @@
32extern "C" { 32extern "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*/
36int 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. */
42int 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