The NETWORKCOMMS communication Framework is a communication framework written by the British C # language that lasted 6 years and was developed to be stable and reliable in performance.
NETWORKCOMMS v3 currently supports only basic UDP communication
A very powerful feature of UDP communication is the UDP broadcast.
Allows a packet sent on the network to be received by multiple adapters.
You can consider using UDP communication in the following scenario
1: Check which network endpoints are online
2: Notifies the network endpoint that there is a new service
3: Passing information to a set of endpoints
Sending UDP packets using Networkcomm V3
Udpconnection.sendobject ("chatmessage""This is thebroadcast test message! " New10000));
Receiving packets using Networkcomms V3
//start listening for incoming UDP dataConnection.startlistening (CONNECTIONTYPE.UDP,NewIPEndPoint (Ipaddress.any,10000));//Processing UDP datanetworkcomms.appendglobalincomingpackethandler<string> ("Chatmessage", (Packetheader, Connection, incomingstring)={Console.WriteLine ("\ n ... Incoming message from"+connection. ToString ()+"saying '"+incomingstring+"'."); });
Original: http://www.networkcomms.net/udp-broadcasting/
Networkcomms.cn Finishing
Networkcomms V3 sending UDP broadcast messages