[Live-devel] GroupsockHelper.cpp ReceivingInterfaceAddr

Arnold Liu asliu23 at yahoo.com
Mon Oct 25 18:05:39 PDT 2004


Actually,

I can also get the streamer to stream out audio on
different interfaces by changing the default gateway
with "route" with no changes to the code.  This is
probably the solution that I'll use for the time
being.

Arnold

--- Arnold Liu <asliu23 at yahoo.com> wrote:

> Greetings All,
> 
> I have a Linux system with multiple ethernet
> interfaces, and was attempting to configure the
> "liveMedia" test program "testWAVAudioStreamer" to
> use
> something other than the default eth0 (which works
> fine by the way).
> 
> I attempted to hack the two variables in
> "GroupsockHelper.cpp" - SendingInterfaceAddr, and
> ReceivingInterfaceAddr to force the use of a
> particular interface.  Here is what I've seen :
> eth0 : 172.16.2.174
> eth1 : 192.168.1.1
> 
> If Sending = INADDR_ANY, receiving = INADDR_ANY,
> this
> works, and packets go out to eth0
> 
> If Sending = eth0, Receiving = INADDR_ANY, this
> works,
> and packets go out to eth0
> 
> If Sending = eth0, Receiving = eth0, this does _not_
> work, "OurSourceAddressForMulticast()" times out
> waiting for the dummy packet.
> 
> If Sending = eth1, Receiving = INADDR_ANY, this also
> times out waiting for the dummy packet.
> 
> If Sending = eth1, Receiving = eth1, this also times
> out waiting for the dummy packet.
> 
> Was curious if anyone else has had any experience
> using this library on different interfaces?
> 
> Regards,
> Arnold
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
> 



More information about the live-devel mailing list