multicast

Multicast Support in Android 2.2?

Does the Android 2.2 media framework support IGMP/Multicast? If yes, can anyone guide how we can do that? ...

receive multicast from specific network interface on Linux

Hello, I'm trying to receive a multicast data from specific network interface on CentOS 5.5 sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_port = htons(1234); addr.sin_addr.s_addr = htonl(INADDR_ANY); bind(sd, (sockaddr*)&addr, sizeof(sockaddr_in)); setsockopt(sd...

Performance implications of .net Events

We were having a discussion at the office on how to solve a particular problem and using an event was raised (no pun intended). The response was negative citing misuse and that they can be expensive. I understand the concerns behind misuse and I know that they are just a special multicast delegate but given a scenario where there is at ...

Listening for IPv6 multicasts on Linux

I'm trying to get a simple multicasting example to work on Linux (I've tried both RHEL 4 2.6.9 and Ubuntu 8.04 2.6.24). The general idea is that I would like the server to bind to a unicast address and then add itself to the group ff02::1. I would then like it to receive multicasts sent to ff02::1. The code below works on Mac OS X 10.5 (...

Connect to remote UDP multicast service

How to connect to remote udp multicast if I have an IP address where the service resided (say 70.70.70.70), the multicast group to connect (say 224.25.25.25) and port (say 2020)? I use ACE framework and in the sniffer I see that ACE sends IGMP packet to 224.0.0.2, in order to join a group, but my home router (checkpoint) doesn't know wh...

Executing multicast delegates in C#

I have a Multiple target Func<int,int,int> funHandler=Max; funHandler+=square; When i execute Console.WriteLine(funHandler(10,10)); it return the square of 10 (i.e) 200.It did not fire Max. i used something like foreach(var v in funHandler.GetInvocationList()) { Console.WriteLine(v(10,20)); } 'V' is a variable,but it is u...

Mono dropping packets when receiving lots of multicast

I am creating a program that listens to video streams over multicast. Listening to one feed with Mono on Linux works fine but listening to 15 feeds drops packets. Running the code on Windows .NET does not drop packets and listening to the feeds with a C program on Linux does not drop packets. Is there something I could do to optimize thi...

Android Multicast socket stops listening

I have a service on Android that listens and responds to packets it receives via multicast. This works most of the time, but unfortunately, I'm finding that every now and again it'll just stop receiving packets. The thread remains blocked on the call to MulticastSocket.receive(), but nothing comes out. I've been slowly trying to track d...

Should I use List<IObserver> or simply Action<T> to keep track of an IObservable's subscribers?

I'm implementing the IObservable<T> interface on some classes. I used Reflector to figure out how this is typically done in Rx. Concerning how an observable keeps track of its subscribers and notifies them via their OnNext method, I stumbled upon code similar to this: private List<Observer<T>> observers; // subscribe a new observer: pu...

join/leave multicast group using libpcap

Hello, I need to receive a multicast stream but filter incoming packets by source MAC address on CentOS 5.5. I'm planning to use libpcap library. Is it possible to join/leave multicast group using libpcap? If yes, how to do that? Thanks ...

Why are my UDP multicast not reaching machines on the network?

I am trying to set up auto discovery using UDP multicasting, and am using some sample code from the internet. this seems to work ok when I run the client and the server on the same machine, but when I run them on different machines, either with a machine running in a VM on my machine (virtualBox) or on other 'real' machines on the netwo...