Questions tagged [multicast]

Multicast refers to one-to-many network transmission options, where packets will be automatically propagated just to those nodes wishing to receive them. IP-based multicast is the common case, though other multicast implementations exist.

1621 questions
7
votes
4 answers

Multicast support in .Net

In order to implement a network application that uses multicasts to send small periodic messages to other processes in the network, what choices do I have with regard to using APIs in the .Net framework? Apart from my obvious current choice, the…
Mystic
  • 5,024
  • 4
  • 29
  • 31
7
votes
1 answer

What is the purpose and result of using INADDR_ANY?

In Python when we want to make a script that listens for multicast traffic we set the IP_ADD_MEMBERSHIP option of the socket with a value that consists of the multicast group address and the address of a local interface on which it will listen for…
AndroidX
  • 558
  • 4
  • 15
7
votes
1 answer

How to filter a multicast receiving socket by interface?

I need to create two sockets listening on the same IP:port but on different interfaces: socket0 receives UDP traffic sent to 224.2.2.2:5000 on interface eth0 socket1 receives UDP traffic sent to 224.2.2.2:5000 on interface eth1 It seemed pretty…
sycc90
  • 83
  • 6
7
votes
1 answer

How to multicast with ipv6 udp socket in C/C++ on linux?

(English is not my native tongue, don't worry if some sentences are strange ;) ). I was developing a PONG game and by the way creating some classes to help me managing window, event ... and network because I added a LAN feature to the game but…
uben
  • 1,221
  • 2
  • 11
  • 20
7
votes
4 answers

Does AWS support multicast and IGMP snooping?

In order to make optimal use of network bandwidth in a communication 1->n I need to use multicast. In an on-premise datacenter with switch having IGMP snooping, the advantage of multicast is obvious. However, in IaaS like AWS this is not obvious as…
rodolk
  • 5,606
  • 3
  • 28
  • 34
7
votes
4 answers

How to limit traffic using multicast over localhost

I'm using multicast UDP over localhost to implement a loose collection of cooperative programs running on a single machine. The following code works well on Mac OSX, Windows and linux. The flaw is that the code will receive UDP packets outside of…
Shane Holloway
  • 7,550
  • 4
  • 29
  • 37
7
votes
2 answers

Need help with multicast udp server discovery in c#

As kind of a followup to this question I've gotten a solution working on my local machine, but not on a machine on the network. I don't know too much about sockets other than that basics, so bear with me. The goal is for a client to look for a…
Davy8
  • 30,868
  • 25
  • 115
  • 173
7
votes
3 answers

How to send multicast messages and reuse a port in Erlang?

I have gotten a good start on my program, my first REAL Erlang program. I have it listening for messages, reading them and parsing them. I also have it sending them. The one little thing that is bothering me is I can't SEND on Port 5353, I have…
user177800
7
votes
2 answers

Error 10049 on Windows Python Multicast

Here's some Python code to set up a multicast receiver. It works fine on mac and linux. import socket, struct ADDR='239.239.250.1' PORT=8001 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET,…
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
7
votes
3 answers

GCDAsyncUdpSocket on iOS missing multicasted datagrams

I have a device on the network that is multicasting a very small file via UDP. The iOS app I am developing is responsible for reading these packets and I have chosen to use GCDAsyncUdpSocket to do so. The file is sent every half second, however I am…
Squatch
  • 1,027
  • 14
  • 27
7
votes
1 answer

Get syscall.Handle from a Go *net.UDPConn on Windows?

How do I obtain the underlying syscall.Handle for a *net.UDPConn on Windows? I want this handle to set the IP_MULTICAST_TTL via syscall.SetsockoptInt. On Linux I do the following: func setTTL(conn *net.UDPConn, ttl int) error { f, err :=…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
7
votes
1 answer

What is the difference between "receive" and "deliver" in a distributed multicast?

What is the difference between a process receiving a message and a process delivering a message, in the context of a multicast?
Zack
  • 13,454
  • 24
  • 75
  • 113
7
votes
2 answers

MSMQ - Cannot receive from Multicast queues

I am trying to get my head around how multicasting works in MSMQ but I cannot receive messages at all, even from the same machine. I'm obviously doing something wrong but cannot see what. Here's where I'm at: I manually created a non-transactional…
Peter Monks
  • 4,219
  • 2
  • 22
  • 38
6
votes
1 answer

Why DatagramSocket.joinGroup() method takes a SocketAddress if the port does not matter for a multicast group?

I am just curious. Is that an API mistake? When you join a multicast group you do NOT use the port, just the multicast address (IP) which is the multicast group, right? Is that an annoyance of is there ever the case when the PORT will be used?
chrisapotek
  • 6,007
  • 14
  • 51
  • 85
6
votes
1 answer

Java Multicast Sending Data, Not Receiving

I am writing a class in Java which is used to greatly simplify the process of multicasting. However, I am having two big problems with it: The class sends data (I can verify this with my net monitor, Wireshark) but the data is not received by any…
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195