[Live-devel] GroupsockHelper.cpp ReceivingInterfaceAddr

钟贵平 zhonggp at chinabizone.com
Tue Nov 2 09:57:45 PST 2004


Hi Arnold,
     I don't understand your way much. I wonder how you changed the default route just to the interface your wanted to use. How did you get that? I mean, the default route is always fixed , say , in my case :
                    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
                    192.168.10.0    *               255.255.255.0   U     0      0        0 eth1
                    211.100.12.0    *               255.255.255.0   U     0      0        0 eth0
                    default         211.100.12.9    0.0.0.0         UG    0      0        0 eth0
    
    If I change the default route  , then I'll get disconnected from internet. So ,may you give me some more details ?



   Best regards.
 Zhonggp.


----- Original Message ----- 
From: "Arnold Liu" <asliu23 at yahoo.com>
To: "'LIVE.COM Streaming Media - development & use'" <live-devel at ns.live.com>
Sent: Tuesday, November 02, 2004 1:04 AM
Subject: RE: [Live-devel] GroupsockHelper.cpp ReceivingInterfaceAddr


> Hi Zhonngp,
> 
> The way that I solved my problem was to change the
> default route to the
> interface that I wanted to use.  What does the output
> of "route" show you?
> Also, does your streamer have multiple interfaces as
> well? 
> 
> Arnold
> 
> > -----Original Message-----
> > From: live-devel-bounces at ns.live.com
> [mailto:live-devel-
> > bounces at ns.live.com] On Behalf Of ???
> > Sent: Sunday, October 31, 2004 11:43 PM
> > To: live-devel at ns.live.com
> > Subject: Re: [Live-devel] GroupsockHelper.cpp
> ReceivingInterfaceAddr
> > 
> > Hi,Arnold,
> >      Have you solved your problem with
> multi-ethernet interfaces?
> >       I am in  the same trouble now.
> >      I attempted to stream audio(mp3)  in unicast
> way with
> > "testOnDemandRTSPServer"  in  a Linux system  with
> two ethernet
> > interfaces:
> >       eth0:192.168.10.11
> >       eth1:211.100.12.11
> > 
> >       I used VLC as a client to receive the stream
> ,and the URL was
> > "rtsp://211.100.12.11:7070/mp3AudioTest".But it
> seemed VLC received
> > nothing  all the time --no audio  and no message.
> However, the server was
> > streaming all the time, and it still sent BYE when I
> closed VLC.
> > 
> >      I thought it might be the problem with the
> ethert interface
> > sequence.So ,I  exchanged them. then restart it.
> >       eth0: 211.100.12.11
> >       eth1: 192.168.10.11
> >    (with same URL prompt)
> >     However, nothing happened, it was still the same
> result.
> > 
> >       It puzzles me much,any suggenstion? Thanks in
> advance.
> > 
> > 
> >     Best  regards.
> > 
> >    Zhonggp
> > 
> > 
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Arnold Liu" <asliu23 at yahoo.com>
> > To: "LIVE.COM Streaming Media - development & use"
> <live-
> > devel at ns.live.com>
> > Sent: Tuesday, October 26, 2004 8:05 AM
> > Subject: Re: [Live-devel] GroupsockHelper.cpp
> ReceivingInterfaceAddr
> > 
> > 
> > > 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
> > > >
> > >
> > > _______________________________________________
> > > live-devel mailing list
> > > live-devel at lists.live.com
> > > http://lists.live.com/mailman/listinfo/live-devel
> > 
> > _______________________________________________
> > live-devel mailing list
> > live-devel at lists.live.com
> > http://lists.live.com/mailman/listinfo/live-devel
> 
> _______________________________________________
> 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