[Live-devel] SendingInterfaceAddr

Enrico Minack enrico-minack at gmx.de
Thu Mar 10 00:21:29 PST 2005


Hi there,

is there any way to access the variable SendingInterfaceAddr of
GroupsockHelper.cpp so that setupDatagramSocket() uses a specific interface
instead of INADDR_ANY?

Wouldn't an additional Groupsock constructor like the following one be
smarter than a global variable?

Groupsock::Groupsock ( UsageEnvironment & env, struct in_addr const &
groupAddr, Port port, in_addr_t interface, u_int8_t ttl )
using
OutputSocket::OutputSocket ( UsageEnvironment & env, Port port, in_addr_t
interface )
using
Socket::Socket ( UsageEnvironment & env, Port port, in_addr_t interface,
Boolean setLoopback = True )
using
int setupDatagramSocket ( UsageEnvironment & env, Port port, in_addr_t
interface, Boolean setLoopback = True )
overwriting
SendingInterfaceAddr with interface?

regards,
Enrico M.


More information about the live-devel mailing list