Constructing an InetHostAddress with INADDR_ANY
does not work as expected. I would expect to to bind to all available network interfaces(as in previous versions), but it binds only the interface associated with 'gethostname()'. THis used to work in 1.5.x
A simple workaround for this problem is as follows
Constructing an InetHostAddress with INADDR_ANY
does not work as expected. I would expect to to bind to all available network interfaces(as in previous versions), but it binds only the interface associated with 'gethostname()'. THis used to work in 1.5.x
A simple workaround for this problem is as follows
InetHostAddress LocalHost;
LocalHost = htonl(INADDR_ANY);