#include <TurnAsyncSocket.hxx>
|
| | TurnAsyncSocket (asio::io_context &ioService, AsyncSocketBase &asyncSocketBase, TurnAsyncSocketHandler *turnAsyncSocketHandler, const asio::ip::address &address=UnspecifiedIpAddress, unsigned short port=0) |
| |
| virtual | ~TurnAsyncSocket () |
| |
| virtual void | disableTurnAsyncHandler () |
| |
| virtual unsigned int | getSocketDescriptor ()=0 |
| |
| const asio::error_code & | getBindError () const |
| | The outcome of binding the socket to the local address and port it was created with: eg.
|
| |
| void | requestSharedSecret () |
| |
| void | setUsernameAndPassword (const char *username, const char *password, bool shortTermAuth=false) |
| |
| void | setLocalPassword (const char *password) |
| |
| void | setSoftware (const char *software) |
| |
| void | connect (const std::string &address, unsigned short port) |
| |
| void | bindRequest () |
| |
| void | connectivityCheck (const StunTuple &targetAddr, uint32_t peerRflxPriority, bool setIceControlling, bool setIceControlled, unsigned int numRetransmits, unsigned int retrans_iterval_ms) |
| |
| void | createAllocation (unsigned int lifetimeSecs=UnspecifiedLifetime, unsigned int bandwidth=UnspecifiedBandwidth, unsigned char requestedPortProps=StunMessage::PropsNone, uint64_t reservationToken=UnspecifiedToken, StunTuple::TransportType requestedTransportType=StunTuple::None) |
| |
| void | refreshAllocation (unsigned int lifetimeSecs) |
| |
| void | destroyAllocation () |
| |
| void | setActiveDestination (const asio::ip::address &address, unsigned short port) |
| |
| void | clearActiveDestination () |
| |
| asio::ip::address & | getConnectedAddress () noexcept |
| |
| unsigned short | getConnectedPort () const noexcept |
| |
| virtual void | send (const char *buffer, size_t size) |
| |
| virtual void | sendTo (const asio::ip::address &address, unsigned short port, const char *buffer, size_t size) |
| |
| virtual void | sendUnframed (const std::shared_ptr< DataBuffer > &data) |
| |
| virtual void | sendFramed (const std::shared_ptr< DataBuffer > &data) |
| |
| virtual void | sendToUnframed (const asio::ip::address &address, unsigned short port, const std::shared_ptr< DataBuffer > &data) |
| |
| virtual void | sendToFramed (const asio::ip::address &address, unsigned short port, const std::shared_ptr< DataBuffer > &data) |
| |
| virtual void | close () |
| |
| virtual void | turnReceive () |
| |
| virtual void | setOnBeforeSocketClosedFp (AsyncSocketBase::BeforeClosedHandler fp) |
| |
Definition at line 41 of file TurnAsyncSocket.hxx.
◆ TurnAsyncSocket()
◆ ~TurnAsyncSocket()
| reTurn::TurnAsyncSocket::~TurnAsyncSocket |
( |
| ) |
|
|
virtual |
◆ bindRequest()
| void reTurn::TurnAsyncSocket::bindRequest |
( |
| ) |
|
◆ clearActiveDestination()
| void reTurn::TurnAsyncSocket::clearActiveDestination |
( |
| ) |
|
◆ close()
| void reTurn::TurnAsyncSocket::close |
( |
| ) |
|
|
virtual |
◆ connect()
◆ connectivityCheck()
◆ createAllocation()
◆ destroyAllocation()
| void reTurn::TurnAsyncSocket::destroyAllocation |
( |
| ) |
|
◆ disableTurnAsyncHandler()
| void reTurn::TurnAsyncSocket::disableTurnAsyncHandler |
( |
| ) |
|
|
virtual |
◆ getBindError()
| const asio::error_code & reTurn::TurnAsyncSocket::getBindError |
( |
| ) |
const |
|
inline |
The outcome of binding the socket to the local address and port it was created with: eg.
address_in_use if another socket has the port
Definition at line 61 of file TurnAsyncSocket.hxx.
◆ getConnectedAddress()
| asio::ip::address & reTurn::TurnAsyncSocket::getConnectedAddress |
( |
| ) |
|
|
inlinenoexcept |
◆ getConnectedPort()
| unsigned short reTurn::TurnAsyncSocket::getConnectedPort |
( |
| ) |
const |
|
inlinenoexcept |
◆ getSocketDescriptor()
◆ handleChannelData()
◆ handleReceivedData()
◆ refreshAllocation()
| void reTurn::TurnAsyncSocket::refreshAllocation |
( |
unsigned int |
lifetimeSecs | ) |
|
◆ requestSharedSecret()
| void reTurn::TurnAsyncSocket::requestSharedSecret |
( |
| ) |
|
◆ send()
◆ sendFramed()
◆ sendTo()
◆ sendToFramed()
◆ sendToUnframed()
◆ sendUnframed()
◆ setActiveDestination()
◆ setLocalPassword()
| void reTurn::TurnAsyncSocket::setLocalPassword |
( |
const char * |
password | ) |
|
◆ setOnBeforeSocketClosedFp()
◆ setSoftware()
| void reTurn::TurnAsyncSocket::setSoftware |
( |
const char * |
software | ) |
|
◆ setUsernameAndPassword()
◆ turnReceive()
| void reTurn::TurnAsyncSocket::turnReceive |
( |
| ) |
|
|
virtual |
◆ RequestEntry
◆ mActiveDestination
| RemotePeer* reTurn::TurnAsyncSocket::mActiveDestination |
|
protected |
◆ mBindError
| asio::error_code reTurn::TurnAsyncSocket::mBindError |
|
protected |
◆ mChannelManager
◆ mHandlerMutex
◆ mHaveAllocation
| bool reTurn::TurnAsyncSocket::mHaveAllocation |
|
protected |
◆ mHmacKey
◆ mIOService
| asio::io_context& reTurn::TurnAsyncSocket::mIOService |
|
protected |
◆ mLifetime
◆ mLocalBinding
| StunTuple reTurn::TurnAsyncSocket::mLocalBinding |
|
protected |
◆ mLocalHmacKey
◆ mNonce
◆ mPassword
◆ mRealm
◆ mRelayTransportType
◆ mRequestedTransportType
◆ mSoftware
◆ mTurnAsyncSocketHandler
◆ mUsername
◆ UnspecifiedBandwidth
| unsigned int reTurn::TurnAsyncSocket::UnspecifiedBandwidth = 0xFFFFFFFF |
|
static |
◆ UnspecifiedIpAddress
| asio::ip::address reTurn::TurnAsyncSocket::UnspecifiedIpAddress |
|
static |
◆ UnspecifiedLifetime
| unsigned int reTurn::TurnAsyncSocket::UnspecifiedLifetime = 0xFFFFFFFF |
|
static |
◆ UnspecifiedToken
The documentation for this class was generated from the following files: