summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-26 10:24:56 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-26 10:24:56 -0400
commit3d1c77dc57687b7ae995dc1aeaf65bdee96341c6 (patch)
tree3a48a66c2d3b26a28aec11031170b185a5fb24a7 /core/LAN_discovery.h
parent8c70b7c11d6d5acc08e234554f187b18876fd5d3 (diff)
Added basic Local/LAN discovery.
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r--core/LAN_discovery.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/LAN_discovery.h b/core/LAN_discovery.h
new file mode 100644
index 00000000..7448abac
--- /dev/null
+++ b/core/LAN_discovery.h
@@ -0,0 +1,28 @@
1/* LAN_discovery.h
2 *
3 * LAN discovery implementation.
4 *
5 */
6
7
8#ifndef LAN_DISCOVERY_H
9#define LAN_DISCOVERY_H
10
11
12#include "DHT.h"
13
14
15/*Send a LAN discovery pcaket to the broadcast address with port port*/
16int send_LANdiscovery(uint16_t port);
17
18
19/* if we receive a packet we call this function so it can be handled.
20 return 0 if packet is handled correctly.
21 return 1 if it didn't handle the packet or if the packet was shit. */
22int LANdiscovery_handlepacket(uint8_t * packet, uint32_t length, IP_Port source);
23
24
25
26
27
28#endif