[Live-devel] Multiple Network Adapter

Ross Finlayson finlayson at live555.com
Wed Jan 6 08:43:57 PST 2010

>If you have a system with multiple NIC interfaces is there a method or
>some standard way to tell the live555 library to which NIC (IP address)
>to bind the sockets created for the RTP streaming? Or I need to modify
>the code of the library to change the default behavior which seems to be
>(in groupsockhelper.cpp):
>// By default, use INADDR_ANY for the sending and receiving interfaces:
>netAddressBits SendingInterfaceAddr   = INADDR_ANY;
>netAddressBits ReceivingInterfaceAddr = INADDR_ANY;

Those are global variables; not constants.  So you don't need to 
change the library code at all to change their values; just do so at 
the start of your application - e.g.
	ReceivingInterfaceAddre = our_inet_addr("");

Ross Finlayson
Live Networks, Inc.

More information about the live-devel mailing list