Re: [Opentnl-general] the address of /this/ end <- ok, thanks (nt)
Brought to you by:
mark_frohnmayer,
s_alanet
From: Jeff D. <jd...@cs...> - 2005-05-01 01:06:34
|
Mark Frohnmayer wrote: > All NetConnections on a NetInterface share the same port. To accurately > determine the port for a NetInterface, you should use the NetInterface's > getSocket() method, and then call getBoundAddress on the socket. This > will give you at least an accurate port. The address may be > Address::Any if it wasn't specified which hardware interface the > NetInterface should bind to. So you can use the combination of > Socket::getInterfaceAddresses and > NetInterface::getSocket().getBoundAddress() to determine the port. |