multicast

Python Multicast not working between two different computers

試著忘記壹切 提交于 2019-12-24 09:37:03
问题 I have a server and client communicating through multicast using a python script. When I put my scripts on the same computer, they behave appropriately; that is they can send and receive data between each other. The computer is running Windows 10. When I put one script on the computer and one script on a raspberry pi, my computer doesn't receive any multicasts except for it's own sent messages. The raspberry pi receives everything. Can anyone tell me why my computer isn't receiving the data

Linux select() and FIFO ordering of multiple sockets?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 08:44:46
问题 Is there any way for the Linux select() call relay event ordering? A description of what I'm seeing: On one machine, I wrote a simple program which sends three multicast packets, one to each of three different multicast groups. These packets are sent back-to-back, with no delay in between. I.e. sendto(mcast_group1); sendto(mcast_group2); sendto(mcast_group3). On the other machine, I have a receiving program. The program uses one socket per multicast group. Each socket does a bind() and IP_ADD

can't add multicast group

有些话、适合烂在心里 提交于 2019-12-23 23:05:16
问题 Trying to add multicast group for ipv6, but it returns error. don't understand the problem. with ipv4 it works fine (test_client@127.0.0.1)1> {ok, S} = gen_udp:open(3333, [binary, {active, false}, {ip, {65342,0,0,0,0,0,34048,9029}}, inet6, {multicast_loop, false}]). {ok,#Port<0.1587>} (test_client@127.0.0.1)4> inet:setopts(S, [{add_membership, {{65342,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}}}]). {error,einval} unfortunately this topic in erlang docs is badly documented also have tried with

Can't send multicast over non-default NIC

我的未来我决定 提交于 2019-12-23 21:58:56
问题 On a Windows 7 VM, I am trying to send UDP packets to a multicast address using the second (non-default) of two network interfaces. I can achieve this with mcast using the /INTF option (which doesn't allow specifying the port), but my C# code doesn't work: void run(string ipaddrstr, int port, string nicaddrstr) { int index = -1; // Create a socket for the UDP broadcast Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); IPAddress ipaddr = IPAddress

Why is my UDP broadcast failing?

你离开我真会死。 提交于 2019-12-23 13:04:20
问题 I'm trying to send a UDP broadcast but wireshark isn't reporting any traffic. Here's the snippet that does the sending: void SendBroadcast() { String^ ip = "255.255.255.255"; int port = 30718; String^ message = "test"; UdpClient^ udpClient = gcnew UdpClient(); udpClient->EnableBroadcast = true; IPEndPoint^ ipDest = gcnew IPEndPoint(IPAddress::Parse(ip), port); cli::array<unsigned char>^ dgram = Encoding::ASCII->GetBytes(message); int bytesSent = udpClient->Send(dgram, dgram->Length, ipDest);

Why is my UDP broadcast failing?

别等时光非礼了梦想. 提交于 2019-12-23 13:02:06
问题 I'm trying to send a UDP broadcast but wireshark isn't reporting any traffic. Here's the snippet that does the sending: void SendBroadcast() { String^ ip = "255.255.255.255"; int port = 30718; String^ message = "test"; UdpClient^ udpClient = gcnew UdpClient(); udpClient->EnableBroadcast = true; IPEndPoint^ ipDest = gcnew IPEndPoint(IPAddress::Parse(ip), port); cli::array<unsigned char>^ dgram = Encoding::ASCII->GetBytes(message); int bytesSent = udpClient->Send(dgram, dgram->Length, ipDest);

Methods for implementing UDP multicast reliable

删除回忆录丶 提交于 2019-12-23 09:29:48
问题 I am preparing for my university exam and one of the question last year was " how to make UDP multicast reliable " ( like tcp, retransmission of lost packets ) I thought about something like this : Server send multicast using UDP Every client send acknowledgement of receiving that packets ( using TCP ) If server realize that not everyone receive packets , it resends multicast or unicast to particular client The problem are that there might be one client who usually lost packets and force

Property 'connect' does not exist on type 'Observable<any>' | RXJS multicast

北城余情 提交于 2019-12-23 09:04:16
问题 I have an Observable that produce the unicast value(individually for all observers). But when i am going to convert into multicast using RxJs multicast operators then it return the following error. Property 'connect' does not exist on type 'Observable' Unicast (Working Code) - let source4$ = interval(1000).pipe(take(4)); source4$.subscribe(val => { console.log(`Observer 1: ${val}`); }); setTimeout(function() { source4$.subscribe(val => { console.log(`Observer 2: ${val}`); }); }, 1000);

Why are multicast messages on the same port but from different groups combined? [duplicate]

半腔热情 提交于 2019-12-23 01:40:07
问题 This question already has an answer here : Duplicate packets in Python multicast receiver (1 answer) Closed 4 years ago . On an Ubuntu 14.04 server I have two processes, each listening for multicast messages on the same port, but from different groups. I would not have expected this, but each sees traffic from both the group they want, and the other group. As far as I can tell, this is known behavior (though I would call it a problem). I found this SO question, which provides some techniques

How to specify a local bond interface to multicast socket in Haskell?

给你一囗甜甜゛ 提交于 2019-12-22 09:49:14
问题 I have tried Network.Multicast package and it does work, however, I cannot find a way to specify a local bond interface ("bond0" or "bond1" etc) to the multicast socket. I know in C I need to use ioctl to convert the bond into a struct sockaddr_in, then feed this struct to IP_MULTICAST_IF option under IPPROTO_IP family of setsockopt, but I am not sure how to do this in Haskell. Can anyone help with this? Thanks! 回答1: In the source of network-multicast [1] I see a call to set ip_multicast_if