summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.h
blob: 7448abaceca2f186f86e3191a7a4b15fe15aa133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* LAN_discovery.h
 * 
 * LAN discovery implementation.
 * 
 */


#ifndef LAN_DISCOVERY_H 
#define LAN_DISCOVERY_H 


#include "DHT.h"


/*Send a LAN discovery pcaket to the broadcast address with port port*/
int send_LANdiscovery(uint16_t port);


/* if we receive a packet we call this function so it can be handled.
   return 0 if packet is handled correctly.
   return 1 if it didn't handle the packet or if the packet was shit. */
int LANdiscovery_handlepacket(uint8_t * packet, uint32_t length, IP_Port source);





#endif