.Net code/library to discover peers using the same application within a private network.
To allow applications on separate machines to discover each other on a local network without the need for a centralised server. This could allow uses, such as peer-to-peer communication to be initialised, by the consuming application of this library.
- API allows the trigger of a UDP broadcast to a known port to the local network - 255.255.255.255 or ff02::1 IPv6. UDP package to adhere to the following:
- First few bytes are an unique application ID (to avoid conflict with other services which might be using same port)
- IP end point of sender for further communication which this sender is expected to be listening to.
Note that the sender is expected to be used sparingly.
- An async call to the library starts the server listening for UDP broadcast to the known port.
- Receiving application checks the UDP package for the ID and message size.
- If valid, it returns the IP address of the sender and the datetime stamp to the host application as an event.
Host application of receiver expected to handle any further action.