PTLib  Version 2.14.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PSTUNUDPSocket Class Reference

UDP socket that has been created by the STUN client. More...

#include <pstun.h>

Inheritance diagram for PSTUNUDPSocket:
Collaboration diagram for PSTUNUDPSocket:

Public Member Functions

 PSTUNUDPSocket (PNatMethod::Component component)
 
virtual const char * GetNatName () const
 
bool OpenSTUN (PSTUNClient &client)
 
virtual void GetCandidateInfo (PNatCandidate &candidate)
 
bool BaseWriteTo (const void *buf, PINDEX len, const PIPSocketAddressAndPort &ap)
 
bool BaseReadFrom (void *buf, PINDEX len, PIPSocketAddressAndPort &ap)
 

Protected Member Functions

bool InternalGetLocalAddress (PIPSocketAddressAndPort &addr)
 

Protected Attributes

PIPSocketAddressAndPort m_serverReflexiveAddress
 
PIPSocketAddressAndPort m_baseAddressAndPort
 

Detailed Description

UDP socket that has been created by the STUN client.

Constructor & Destructor Documentation

PSTUNUDPSocket::PSTUNUDPSocket ( PNatMethod::Component  component)

Member Function Documentation

bool PSTUNUDPSocket::BaseReadFrom ( void *  buf,
PINDEX  len,
PIPSocketAddressAndPort ap 
)
inline
bool PSTUNUDPSocket::BaseWriteTo ( const void *  buf,
PINDEX  len,
const PIPSocketAddressAndPort ap 
)
inline
virtual void PSTUNUDPSocket::GetCandidateInfo ( PNatCandidate &  candidate)
virtual

Reimplemented in PTURNUDPSocket.

virtual const char* PSTUNUDPSocket::GetNatName ( ) const
virtual

Reimplemented in PTURNUDPSocket.

bool PSTUNUDPSocket::InternalGetLocalAddress ( PIPSocketAddressAndPort addr)
protected
bool PSTUNUDPSocket::OpenSTUN ( PSTUNClient client)

Member Data Documentation

PIPSocketAddressAndPort PSTUNUDPSocket::m_baseAddressAndPort
protected
PIPSocketAddressAndPort PSTUNUDPSocket::m_serverReflexiveAddress
protected

The documentation for this class was generated from the following file: