Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSTUNUDPSocket::GetLocalAddress ( Address addr  )  [virtual]

Get the Internet Protocol address for the local host.

TRUE if the IP number was returned.
addr  Variable to receive hosts IP address

Reimplemented from PIPSocket.

Definition at line 818 of file pstun.cxx.

References PIPSocket::GetLocalAddress(), and PIPSocket::Address::IsValid().

  if (!externalIP.IsValid())
    return PUDPSocket::GetLocalAddress(addr);

  addr = externalIP;
  return true;

Generated by  Doxygen 1.6.0   Back to index