A python script that can send multicast data on LINUX. In fact, it is not too difficult to compile. The specific code is as follows: first declare that this is not what I wrote, but what I found, but what others wrote is quite good.
The code is as follows:
# UDP multicast examples, Hugo Vincent, 2005-05-14.Import socketDef send (data, port = 50000, addr = '192.1.100 '):"Send (data [, port [, addr])-multi
Concepts of unicast, multicast, broadcast, and anycast
UnicastIt refers to the unicast method in which the destination address is a single objective in the computing machine's website. It is the most widely used network today. Generally, most of the network recommendations or services used use unicast Protocol, for example, all TCP-based protocol.
[Unicast features]
Each time only two instances communicate with each other, the sender and accept
by default)
-------------------------------
Group address
-------------------------------
Host and group of IGMP V2 package
1. The host sends the member relationship report to 224.0.0.1.
2. All Hosts receive the report (the host sends a report every 10 seconds)
3. If the router receives the report, add the IGMP group ing table and forward traffic from the corresponding interface
4. the router sends a generral query every 60 seconds and sends it to all hosts to check whether there are any hos
First, I declare that this is not what I wrote, but what I found, but what others wrote is quite good.
Copy codeThe Code is as follows: # UDP multicast examples, Hugo Vincent, 2005-05-14.
Import socket
Def send (data, port = 50000, addr = '192.1.100 '):"Send (data [, port [, addr])-multicasts a UDP datax ."""# Create the socketS = socket. socket (socket. AF_INET, socket. SOCK_DGRAM)# Make the socket multicast
Start by figuring out what multicast IP addresses areClass D IP Address is the multicast address, the range is 224.0.0.0 ~ 239.255.255.255It is also divided into the following categoriesDivision of Class D addresses
Category
Address range
Describe
Local link address (local network control block)
224.0.0.0~224.0.0.255
For LAN, routers do not forward IP pack
Recently in doing a project, need to use the function of multicast, the program after debugging, in XP can be normal implementation of multicast, but to the WIN7 after the use of multicast, after a long time, finally in the network class teacher's guidance, found that should be IGMP (Multicast Protocol) version of the
With the rapid development of information technology, the overwhelming network has gradually become an indispensable part of people's life and work, in particular, modern young people put more learning and entertainment time into computer networks, and computer networks have gradually become the main way for people to learn and entertain. How to provide users with a high-bandwidth, high-reliability, high-performance multimedia video service has become a major challenge facing service providers.
First of all, it's not what I wrote, it's what I found, but the others wrote it pretty well.
Copy Code code as follows:
# UDP Multicast examples, Hugo Vincent, 2005-05-14.
Import socket
def send (data, port=50000, addr= ' 239.192.1.100 '):
"" "Send (data[, port[, addr]])-multicasts a UDP datagram." "
# Create The socket
s = socket.socket (socket.af_inet, socket. SOCK_DGRAM)
# make the socket m
Opening introduction
There is a multicast component in the SSIS data flow that works in contrast to the merged data stream components such as merge, merge Join, or Union all. Very intuitive, it can separate a stream of data into multiple streams for use by other data flow components downstream.
Several scenarios for using the multicast Task
First, take part of the data from the same data source directl
For specific SL source multicast and any source multicast, you must obtain the authorization of port 9430 of the current domain before joining the group.
The request authorization message is called "Announcement", and the response message is called "Authorization ". 0 and 1 respectively.
The formats of announcements and authentication messages are as follows: Struct Silverlightpolicymessage { Byte [
Agent this thing, really do not want to talk about, is estimated to be an iOS developer can skillfully use, with notification and block, all use of memorized.Here's a little talk about proxy extensions: implicit proxies and multicast proxies are actually very simple.Implicit proxy: It is no longer necessary to abide by the protocol when defining the properties of the protocol, and the class implementing the method is not subject to the Protocol, becau
encode frame frames, by delimiter or length bitto differentiate each frame.
Multicast and broadcast
We can unicast a copy of the data to each recipient, but this may be very inefficient.Only UDP sockets allow broadcast and multicast, and the difference is that broadcasts are sent to all accessibleHosts, some operating systems may not allow ordinary users to broadcast;
In my last post, extension of function (1): inheritance, this function of extended function has been implemented for inheritance.
According to the theory of the climbing of the article, I'm going to talk to you about it. Implement multicast events by extending the function.
Some friends may be familiar with the listener pattern, and some friends may not know much about them. But for events. I believe almost no one has ever used it.
In JS, we tend t
Delegate chain, multicast delegation: that is, to link multiple delegates together, we have linked multiple methods of the delegate is called a delegate chain or multicast delegationCases:1 classHelloWorld2 {3 //Defining delegate Types4 Delegate voidDelegationchain ();5 Static voidMain (string[] args)6 {7 //using a static method to delegate an instance8Delegationchain myd
A: Hello is used to keep a neighbor and does not require each neighbor to replicate a single unicast packet. LSU is the link state with the new, a network segment generally has the DR and Bdr, both of which need to establish a neighbor with R-other and monitor the multicast address of the 224.0.0.6. If LSU sends it out from Drother, not sending it to the multicast address, sending it to unicast will result
These days in doing WiFi smart lights, need to use the knowledge of multicast to this record, the server is written in Java, the code is as follows:1 Importjava.io.IOException;2 ImportJava.net.DatagramPacket;3 ImportJava.net.DatagramSocket;4 Importjava.net.InetAddress;5 ImportJava.net.MulticastSocket;6 7 classudpserver{8 Public Static voidMain (string[] args)throwsioexception{9MulticastSocket Server =NewMulticastSocket (5050);TenInetAddress addr
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.