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

#include <TurnLoadGenAsyncSocketHandler.hxx>

Inheritance diagram for TurnLoadGenAsyncSocketHandler:
[legend]

Public Member Functions

 TurnLoadGenAsyncSocketHandler (int clientNum, asio::io_context &ioService, const Data &localAddress, const Data &turnServerAddress, unsigned short turnServerPort, unsigned short relayPort, const ConfigParse &config)
 
virtual ~TurnLoadGenAsyncSocketHandler ()
 
void setTurnAsyncSocket (std::shared_ptr< TurnAsyncSocket > &turnAsyncSocket)
 
void connect ()
 
void sendBindRequest ()
 
void sendAllocationRequest ()
 
void startSendingPayload ()
 
void sendPayload ()
 
virtual void onConnectSuccess (unsigned int socketDesc, const asio::ip::address &address, unsigned short port) override
 
virtual void onConnectFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onSharedSecretSuccess (unsigned int socketDesc, const char *username, unsigned int usernameSize, const char *password, unsigned int passwordSize) override
 
virtual void onSharedSecretFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onBindSuccess (unsigned int socketDesc, const StunTuple &reflexiveTuple, const StunTuple &stunServerTuple) override
 
virtual void onBindFailure (unsigned int socketDesc, const asio::error_code &e, const StunTuple &stunServerTuple) override
 
virtual void onAllocationSuccess (unsigned int socketDesc, const StunTuple &reflexiveTuple, const StunTuple &relayTuple, unsigned int lifetime, unsigned int bandwidth, uint64_t reservationToken) override
 
virtual void onAllocationFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onRefreshSuccess (unsigned int socketDesc, unsigned int lifetime) override
 
virtual void onRefreshFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onSetActiveDestinationSuccess (unsigned int socketDesc) override
 
virtual void onSetActiveDestinationFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onClearActiveDestinationSuccess (unsigned int socketDesc) override
 
virtual void onClearActiveDestinationFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onChannelBindRequestSent (unsigned int socketDesc, unsigned short channelNumber) override
 
virtual void onChannelBindSuccess (unsigned int socketDesc, unsigned short channelNumber) override
 
virtual void onChannelBindFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onSendSuccess (unsigned int socketDesc) override
 
virtual void onSendFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onReceiveSuccess (unsigned int socketDesc, const asio::ip::address &address, unsigned short port, const std::shared_ptr< reTurn::DataBuffer > &data) override
 
virtual void onReceiveFailure (unsigned int socketDesc, const asio::error_code &e) override
 
virtual void onIncomingBindRequestProcessed (unsigned int socketDesc, const StunTuple &sourceTuple) override
 
- Public Member Functions inherited from reTurn::TurnAsyncSocketHandler
 TurnAsyncSocketHandler ()
 
virtual ~TurnAsyncSocketHandler ()
 
virtual void onAllocationSuccess (unsigned int socketDesc, const StunTuple &reflexiveTuple, const StunTuple &relayTuple, unsigned int lifetimeSecs, unsigned int bandwidth, uint64_t reservationToken)=0
 

Detailed Description

Definition at line 16 of file TurnLoadGenAsyncSocketHandler.hxx.

Constructor & Destructor Documentation

◆ TurnLoadGenAsyncSocketHandler()

TurnLoadGenAsyncSocketHandler::TurnLoadGenAsyncSocketHandler ( int  clientNum,
asio::io_context &  ioService,
const Data &  localAddress,
const Data &  turnServerAddress,
unsigned short  turnServerPort,
unsigned short  relayPort,
const ConfigParse &  config 
)

Definition at line 31 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ ~TurnLoadGenAsyncSocketHandler()

TurnLoadGenAsyncSocketHandler::~TurnLoadGenAsyncSocketHandler ( )
virtual

Definition at line 58 of file TurnLoadGenAsyncSocketHandler.cxx.

Member Function Documentation

◆ connect()

void TurnLoadGenAsyncSocketHandler::connect ( )

Definition at line 83 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onAllocationFailure()

void TurnLoadGenAsyncSocketHandler::onAllocationFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 186 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onAllocationSuccess()

void TurnLoadGenAsyncSocketHandler::onAllocationSuccess ( unsigned int  socketDesc,
const StunTuple &  reflexiveTuple,
const StunTuple &  relayTuple,
unsigned int  lifetime,
unsigned int  bandwidth,
uint64_t  reservationToken 
)
overridevirtual

Definition at line 173 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onBindFailure()

void TurnLoadGenAsyncSocketHandler::onBindFailure ( unsigned int  socketDesc,
const asio::error_code &  e,
const StunTuple &  stunServerTuple 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 168 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onBindSuccess()

void TurnLoadGenAsyncSocketHandler::onBindSuccess ( unsigned int  socketDesc,
const StunTuple &  reflexiveTuple,
const StunTuple &  stunServerTuple 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 162 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onChannelBindFailure()

void TurnLoadGenAsyncSocketHandler::onChannelBindFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 251 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onChannelBindRequestSent()

void TurnLoadGenAsyncSocketHandler::onChannelBindRequestSent ( unsigned int  socketDesc,
unsigned short  channelNumber 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 241 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onChannelBindSuccess()

void TurnLoadGenAsyncSocketHandler::onChannelBindSuccess ( unsigned int  socketDesc,
unsigned short  channelNumber 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 246 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onClearActiveDestinationFailure()

void TurnLoadGenAsyncSocketHandler::onClearActiveDestinationFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 236 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onClearActiveDestinationSuccess()

void TurnLoadGenAsyncSocketHandler::onClearActiveDestinationSuccess ( unsigned int  socketDesc)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 231 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onConnectFailure()

void TurnLoadGenAsyncSocketHandler::onConnectFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 147 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onConnectSuccess()

void TurnLoadGenAsyncSocketHandler::onConnectSuccess ( unsigned int  socketDesc,
const asio::ip::address &  address,
unsigned short  port 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 133 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onIncomingBindRequestProcessed()

void TurnLoadGenAsyncSocketHandler::onIncomingBindRequestProcessed ( unsigned int  socketDesc,
const StunTuple &  sourceTuple 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 279 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onReceiveFailure()

void TurnLoadGenAsyncSocketHandler::onReceiveFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 273 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onReceiveSuccess()

void TurnLoadGenAsyncSocketHandler::onReceiveSuccess ( unsigned int  socketDesc,
const asio::ip::address &  address,
unsigned short  port,
const std::shared_ptr< reTurn::DataBuffer > &  data 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 267 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onRefreshFailure()

void TurnLoadGenAsyncSocketHandler::onRefreshFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 211 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onRefreshSuccess()

void TurnLoadGenAsyncSocketHandler::onRefreshSuccess ( unsigned int  socketDesc,
unsigned int  lifetime 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 195 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSendFailure()

void TurnLoadGenAsyncSocketHandler::onSendFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 261 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSendSuccess()

void TurnLoadGenAsyncSocketHandler::onSendSuccess ( unsigned int  socketDesc)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 256 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSetActiveDestinationFailure()

void TurnLoadGenAsyncSocketHandler::onSetActiveDestinationFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 226 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSetActiveDestinationSuccess()

void TurnLoadGenAsyncSocketHandler::onSetActiveDestinationSuccess ( unsigned int  socketDesc)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 220 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSharedSecretFailure()

void TurnLoadGenAsyncSocketHandler::onSharedSecretFailure ( unsigned int  socketDesc,
const asio::error_code &  e 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 157 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ onSharedSecretSuccess()

void TurnLoadGenAsyncSocketHandler::onSharedSecretSuccess ( unsigned int  socketDesc,
const char *  username,
unsigned int  usernameSize,
const char *  password,
unsigned int  passwordSize 
)
overridevirtual

Implements reTurn::TurnAsyncSocketHandler.

Definition at line 152 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ sendAllocationRequest()

void TurnLoadGenAsyncSocketHandler::sendAllocationRequest ( )

Definition at line 95 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ sendBindRequest()

void TurnLoadGenAsyncSocketHandler::sendBindRequest ( )

Definition at line 90 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ sendPayload()

void TurnLoadGenAsyncSocketHandler::sendPayload ( )

Definition at line 116 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ setTurnAsyncSocket()

void TurnLoadGenAsyncSocketHandler::setTurnAsyncSocket ( std::shared_ptr< TurnAsyncSocket > &  turnAsyncSocket)

Definition at line 67 of file TurnLoadGenAsyncSocketHandler.cxx.

◆ startSendingPayload()

void TurnLoadGenAsyncSocketHandler::startSendingPayload ( )

Definition at line 109 of file TurnLoadGenAsyncSocketHandler.cxx.


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