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

#include <TurnAllocation.hxx>

Inheritance diagram for reTurn::TurnAllocation:
[legend]

Public Member Functions

 TurnAllocation (TurnManager &turnManager, TurnAllocationManager &turnAllocationManager, AsyncSocketBase *localTurnSocket, const StunTuple &clientLocalTuple, const StunTuple &clientRemoteTuple, const StunAuth &clientAuth, const StunTuple &requestedTuple, unsigned int lifetime)
 
 TurnAllocation (const TurnAllocation &)=delete
 
 TurnAllocation (TurnAllocation &&)=delete
 
 ~TurnAllocation ()
 
TurnAllocation & operator= (const TurnAllocation &)=delete
 
TurnAllocation & operator= (TurnAllocation &&)=delete
 
bool startRelay ()
 
void stopRelay ()
 
const TurnAllocationKey & getKey () const noexcept
 
void refresh (unsigned int lifetime)
 
bool existsPermission (const asio::ip::address &address)
 
void refreshPermission (const asio::ip::address &address)
 
void onSocketDestroyed () override
 
void sendDataToPeer (unsigned short channelNumber, const std::shared_ptr< DataBuffer > &data, bool isFramed)
 
void sendDataToPeer (const StunTuple &peerAddress, const std::shared_ptr< DataBuffer > &data, bool isFramed)
 
void sendDataToClient (const StunTuple &peerAddress, const std::shared_ptr< DataBuffer > &data)
 
bool addChannelBinding (const StunTuple &peerAddress, unsigned short channelNumber)
 
const StunTuple & getRequestedTuple () const noexcept
 
time_t getExpires () const noexcept
 
const StunAuth & getClientAuth () const noexcept
 
- Public Member Functions inherited from reTurn::AsyncSocketBaseHandler
 AsyncSocketBaseHandler ()
 
virtual ~AsyncSocketBaseHandler ()
 

Detailed Description

Definition at line 27 of file TurnAllocation.hxx.

Constructor & Destructor Documentation

◆ TurnAllocation() [1/3]

reTurn::TurnAllocation::TurnAllocation ( TurnManager &  turnManager,
TurnAllocationManager &  turnAllocationManager,
AsyncSocketBase *  localTurnSocket,
const StunTuple &  clientLocalTuple,
const StunTuple &  clientRemoteTuple,
const StunAuth &  clientAuth,
const StunTuple &  requestedTuple,
unsigned int  lifetime 
)
explicit

Definition at line 31 of file TurnAllocation.cxx.

◆ TurnAllocation() [2/3]

reTurn::TurnAllocation::TurnAllocation ( const TurnAllocation &  )
delete

◆ TurnAllocation() [3/3]

reTurn::TurnAllocation::TurnAllocation ( TurnAllocation &&  )
delete

◆ ~TurnAllocation()

reTurn::TurnAllocation::~TurnAllocation ( )

Definition at line 62 of file TurnAllocation.cxx.

Member Function Documentation

◆ addChannelBinding()

bool reTurn::TurnAllocation::addChannelBinding ( const StunTuple &  peerAddress,
unsigned short  channelNumber 
)

Definition at line 306 of file TurnAllocation.cxx.

◆ existsPermission()

bool reTurn::TurnAllocation::existsPermission ( const asio::ip::address &  address)

Definition at line 143 of file TurnAllocation.cxx.

◆ getClientAuth()

const StunAuth & reTurn::TurnAllocation::getClientAuth ( ) const
inlinenoexcept

Definition at line 75 of file TurnAllocation.hxx.

◆ getExpires()

time_t reTurn::TurnAllocation::getExpires ( ) const
inlinenoexcept

Definition at line 74 of file TurnAllocation.hxx.

◆ getKey()

const TurnAllocationKey & reTurn::TurnAllocation::getKey ( ) const
inlinenoexcept

Definition at line 49 of file TurnAllocation.hxx.

◆ getRequestedTuple()

const StunTuple & reTurn::TurnAllocation::getRequestedTuple ( ) const
inlinenoexcept

Definition at line 73 of file TurnAllocation.hxx.

◆ onSocketDestroyed()

void reTurn::TurnAllocation::onSocketDestroyed ( )
overridevirtual

Implements reTurn::AsyncSocketBaseHandler.

Definition at line 185 of file TurnAllocation.cxx.

◆ operator=() [1/2]

TurnAllocation & reTurn::TurnAllocation::operator= ( const TurnAllocation &  )
delete

◆ operator=() [2/2]

TurnAllocation & reTurn::TurnAllocation::operator= ( TurnAllocation &&  )
delete

◆ refresh()

void reTurn::TurnAllocation::refresh ( unsigned int  lifetime)

Definition at line 130 of file TurnAllocation.cxx.

◆ refreshPermission()

void reTurn::TurnAllocation::refreshPermission ( const asio::ip::address &  address)

Definition at line 162 of file TurnAllocation.cxx.

◆ sendDataToClient()

void reTurn::TurnAllocation::sendDataToClient ( const StunTuple &  peerAddress,
const std::shared_ptr< DataBuffer > &  data 
)

Definition at line 255 of file TurnAllocation.cxx.

◆ sendDataToPeer() [1/2]

void reTurn::TurnAllocation::sendDataToPeer ( const StunTuple &  peerAddress,
const std::shared_ptr< DataBuffer > &  data,
bool  isFramed 
)

Definition at line 217 of file TurnAllocation.cxx.

◆ sendDataToPeer() [2/2]

void reTurn::TurnAllocation::sendDataToPeer ( unsigned short  channelNumber,
const std::shared_ptr< DataBuffer > &  data,
bool  isFramed 
)

Definition at line 191 of file TurnAllocation.cxx.

◆ startRelay()

bool reTurn::TurnAllocation::startRelay ( )

Definition at line 96 of file TurnAllocation.cxx.

◆ stopRelay()

void reTurn::TurnAllocation::stopRelay ( )

Definition at line 118 of file TurnAllocation.cxx.


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