summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r--core/LAN_discovery.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/core/LAN_discovery.h b/core/LAN_discovery.h
deleted file mode 100644
index 5a790331..00000000
--- a/core/LAN_discovery.h
+++ /dev/null
@@ -1,55 +0,0 @@
1/* LAN_discovery.h
2 *
3 * LAN discovery implementation.
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 *
22 */
23
24
25#ifndef LAN_DISCOVERY_H
26#define LAN_DISCOVERY_H
27
28
29#include "DHT.h"
30
31/* used for get_broadcast() */
32#ifdef __linux
33#include <sys/ioctl.h>
34#include <arpa/inet.h>
35#include <linux/netdevice.h>
36#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42/*Send a LAN discovery pcaket to the broadcast address with port port*/
43int send_LANdiscovery(uint16_t port, Net_Crypto *c);
44
45
46/* sets up packet handlers */
47void LANdiscovery_init(DHT *dht);
48
49
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif