diff options
Diffstat (limited to 'core/LAN_discovery.h')
-rw-r--r-- | core/LAN_discovery.h | 28 |
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*/ | ||
16 | int 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. */ | ||
22 | int LANdiscovery_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); | ||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | #endif | ||