Networkcomms V3 sending UDP broadcast messages

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.