#include <pstun.h>
|
| PSTUN () |
|
virtual | ~PSTUN () |
|
void | DoRFC3489Discovery (PNatMethod::NatTypes &natType, PSTUNUDPSocket *socket, const PIPSocketAddressAndPort &serverAddress, PIPSocketAddressAndPort &baseAddressAndPort, PIPSocket::Address &externalAddress, bool externalAddressOnly) |
| Determine the NAT type using RFC3489 discovery method. More...
|
|
void | FinishRFC3489Discovery (PNatMethod::NatTypes &natType, PSTUNMessage &responseI, PSTUNUDPSocket *socket, PIPSocket::Address &externalAddress, bool externalAddressOnly) |
|
virtual bool | GetFromBindingResponse (const PSTUNMessage &response, PIPSocketAddressAndPort &externalAddress) |
|
virtual void | SetCredentials (const PString &username, const PString &password, const PString &realm) |
|
virtual const PTimeInterval | GetTimeout () const |
| Get the timeout for responses from STUN server. More...
|
|
virtual void | SetTimeout (const PTimeInterval &timeout) |
| Set the timeout for responses from STUN server. More...
|
|
virtual PINDEX | GetRetries () const |
| Get the number of retries for responses from STUN server. More...
|
|
virtual void | SetRetries (PINDEX retries) |
| Set the number of retries for responses from STUN server. More...
|
|
virtual void | SetIceRole (IceRole role) |
|
Enumerator |
---|
MinChannelNumber |
|
MaxChannelNumber |
|
Enumerator |
---|
NoIceRole |
|
IceLite |
|
IceControlled |
|
IceControlling |
|
virtual PSTUN::~PSTUN |
( |
| ) |
|
|
inlinevirtual |
Determine the NAT type using RFC3489 discovery method.
virtual PINDEX PSTUN::GetRetries |
( |
| ) |
const |
|
inlinevirtual |
Get the number of retries for responses from STUN server.
References m_pollRetries.
Get the timeout for responses from STUN server.
References m_replyTimeout.
virtual void PSTUN::SetCredentials |
( |
const PString & |
username, |
|
|
const PString & |
password, |
|
|
const PString & |
realm |
|
) |
| |
|
virtual |
- Parameters
-
realm | If empty the using short term credentials |
Reimplemented in PSTUNClient.
virtual void PSTUN::SetIceRole |
( |
IceRole |
role | ) |
|
|
virtual |
virtual void PSTUN::SetRetries |
( |
PINDEX |
retries | ) |
|
|
inlinevirtual |
Set the number of retries for responses from STUN server.
- Parameters
-
References m_pollRetries.
Set the timeout for responses from STUN server.
- Parameters
-
timeout | New timeout in milliseconds |
References m_replyTimeout.
uint64_t PSTUN::m_iceTieBreak |
|
protected |
PSASLString PSTUN::m_nonce |
|
protected |
PINDEX PSTUN::m_pollRetries |
|
protected |
PSASLString PSTUN::m_realm |
|
protected |
PSASLString PSTUN::m_userName |
|
protected |
The documentation for this class was generated from the following file: