[Live-devel] Multicast Interface Addr

Ross Finlayson finlayson at live555.com
Thu May 31 16:58:55 PDT 2007


Some people definitely needed the current code for unicast streaming 
(to/from a specific IP address); that's why the code is there.  If I 
were to make your suggested change, I'm sure I'd get complaints from 
other people.

However, I think the following change will satisfy everyone.  In 
"GroupsockHelper.cpp", try changing lines 101-105 from:

	#if defined(__WIN32__) || defined(_WIN32)
	#else
	  if (port.num() != 0 || ReceivingInterfaceAddr != INADDR_ANY) {
	#endif
	    MAKE_SOCKADDR_IN(name, ReceivingInterfaceAddr, port.num());

to

	netAddressBits addr = INADDR_ANY;;
	#if defined(__WIN32__) || defined(_WIN32)
	#else
	  if (port.num() != 0 || ReceivingInterfaceAddr != INADDR_ANY) {
	#endif
	    if (port.num() == 0) addr = ReceivingInterfaceAddr;
	    MAKE_SOCKADDR_IN(name, addr, port.num());
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list