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

BOOL PSTUNUDPSocket::GetLocalAddress ( Address addr,
WORD &  port 
) [virtual]
addrVariable to receive peer hosts IP address
portVariable to receive peer hosts port number

Reimplemented from PIPSocket.

Definition at line 828 of file pstun.cxx.

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

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

  addr = externalIP;
  port = GetPort();
  return true;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index