reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
reTurn::StunTuple Class Reference

#include <StunTuple.hxx>

Public Types

enum  TransportType { None , UDP , TCP , TLS }
 

Public Member Functions

 StunTuple ()
 
 StunTuple (TransportType transport, const asio::ip::address &address, unsigned int port)
 
bool operator== (const StunTuple &rhs) const
 
bool operator!= (const StunTuple &rhs) const
 
bool operator< (const StunTuple &rhs) const
 
TransportType getTransportType () const
 
void setTransportType (TransportType transport)
 
const asio::ip::address & getAddress () const
 
void setAddress (const asio::ip::address &address)
 
unsigned int getPort () const
 
void setPort (unsigned int port)
 
void toSockaddr (sockaddr *addr) const
 

Friends

EncodeStream & operator<< (EncodeStream &strm, const StunTuple &tuple)
 

Detailed Description

Definition at line 23 of file StunTuple.hxx.

Member Enumeration Documentation

◆ TransportType

Enumerator
None 
UDP 
TCP 
TLS 

Definition at line 26 of file StunTuple.hxx.

Constructor & Destructor Documentation

◆ StunTuple() [1/2]

reTurn::StunTuple::StunTuple ( )
explicit

Definition at line 12 of file StunTuple.cxx.

◆ StunTuple() [2/2]

reTurn::StunTuple::StunTuple ( TransportType  transport,
const asio::ip::address &  address,
unsigned int  port 
)
explicit

Definition at line 18 of file StunTuple.cxx.

Member Function Documentation

◆ getAddress()

const asio::ip::address & reTurn::StunTuple::getAddress ( ) const
inline

Definition at line 44 of file StunTuple.hxx.

◆ getPort()

unsigned int reTurn::StunTuple::getPort ( ) const
inline

Definition at line 47 of file StunTuple.hxx.

◆ getTransportType()

TransportType reTurn::StunTuple::getTransportType ( ) const
inline

Definition at line 41 of file StunTuple.hxx.

◆ operator!=()

bool reTurn::StunTuple::operator!= ( const StunTuple &  rhs) const

Definition at line 34 of file StunTuple.cxx.

◆ operator<()

bool reTurn::StunTuple::operator< ( const StunTuple &  rhs) const

Definition at line 41 of file StunTuple.cxx.

◆ operator==()

bool reTurn::StunTuple::operator== ( const StunTuple &  rhs) const

Definition at line 26 of file StunTuple.cxx.

◆ setAddress()

void reTurn::StunTuple::setAddress ( const asio::ip::address &  address)
inline

Definition at line 45 of file StunTuple.hxx.

◆ setPort()

void reTurn::StunTuple::setPort ( unsigned int  port)
inline

Definition at line 48 of file StunTuple.hxx.

◆ setTransportType()

void reTurn::StunTuple::setTransportType ( TransportType  transport)
inline

Definition at line 42 of file StunTuple.hxx.

◆ toSockaddr()

void reTurn::StunTuple::toSockaddr ( sockaddr *  addr) const

Definition at line 64 of file StunTuple.cxx.

Friends And Related Symbol Documentation

◆ operator<<

EncodeStream & operator<< ( EncodeStream &  strm,
const StunTuple &  tuple 
)
friend

Definition at line 94 of file StunTuple.cxx.


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