Hello, 

ad 2) bind the socket to a multicast address?
How does that work?
Do you use your own library or the live library?
Where do I have to add this code fragment to the live library? (Groupsock.cpp 
or GroupsockHelper.cpp or ..)
The only way for me to change the interface address, in order to receive an 
send packets, was to change the variable "SendingInterfaceAddr" and 
"ReceivingInterfaceAddr". Binding the socket to a multicast address lead to an 
expected result. I didn't receive any data over the socket. If I bound the 
socket to a specific network interface I could receive data packets, but had 
the merging problem.

-----Original Message-----
From: "Aeschbacher, Fabrice" <[EMAIL PROTECTED]>
To: "LIVE555 Streaming Media - development & use" <[EMAIL PROTECTED]>
Date: Fri, 27 Jun 2008 12:06:29 +0200
Subject: Re: [Live-devel] Multicast Streaming again

Hi,

We already experienced the same problem. We found two different
solutions:

1) Kernel path for the udp driver (see attachment)

2) Do NOT bind with INADDR_ANY but with the multicast address:
 
 ...
 // Following DOES NOT work as expected: the socket will become
 // datagrams from ALL multicast addresses on the same port
 //saddr.sin_addr.s_addr = htonl(INADDR_ANY); // bind socket to any
interface

 // Whereas following works: socket will only see datagrams
 // from 'multicast_addr'
 saddr.sin_addr.s_addr = inet_addr(multicast_addr);

 status = bind(sock, (struct sockaddr *)&saddr, sizeof(struct
sockaddr_in));
 ...

Solution 1 implies to rewrite a new patch for every new kernel, but
implies no modification to live555

Solution 2 can be used with any kernel, but needs to patch live555.

Best regards,
Fabrice Aeschbacher

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Marian Kogler
> Sent: Dienstag, 24. Juni 2008 10:30
> To: [EMAIL PROTECTED]
> Subject: [Live-devel] Multicast Streaming again
> 
> Hello again!
> 
> I have recently posted a mail concerning multicast streaming 
> over two different ip addresses and the same port.
> (e.g. ip 1: 239.255.42.42 .. port: 5008
> ip 2: 239.255.42.43 .. port: 5008)
> When i tried to receive the right streams the two streams got merged.
> Source Specific Multicast was not a solution for me!
> You told me that I should use another OS (former OS: Ubuntu 
> 7.10), because it is responsible for this and not the live library.
> Now my question: 
> Which is the right OS? Can I use "Red Head Linux Enterprise 
> 4" , without sending  two streams to two different ports?
> I hope you can help me!
> 
> 
> _______________________________________________
> live-devel mailing list
> live-devel@lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
> 



_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to