1#ifndef TURNALLOCATION_HXX
2#define TURNALLOCATION_HXX
23class TurnAllocationManager;
85 typedef std::map<asio::ip::address,TurnPermission*> TurnPermissionMap;
86 TurnPermissionMap mTurnPermissionMap;
90 asio::steady_timer mAllocationTimer;
93 std::shared_ptr<UdpRelayServer> mUdpRelayServer;
98 bool mBadChannelErrorLogged;
99 bool mNoPermissionToPeerLogged;
100 bool mNoPermissionFromPeerLogged;
const StunAuth & getClientAuth() const noexcept
bool addChannelBinding(const StunTuple &peerAddress, unsigned short channelNumber)
const StunTuple & getRequestedTuple() const noexcept
void sendDataToPeer(unsigned short channelNumber, const std::shared_ptr< DataBuffer > &data, bool isFramed)
void onSocketDestroyed() override
TurnAllocation(TurnAllocation &&)=delete
void refresh(unsigned int lifetime)
const TurnAllocationKey & getKey() const noexcept
TurnAllocation & operator=(TurnAllocation &&)=delete
void sendDataToClient(const StunTuple &peerAddress, const std::shared_ptr< DataBuffer > &data)
TurnAllocation(const TurnAllocation &)=delete
bool existsPermission(const asio::ip::address &address)
time_t getExpires() const noexcept
void refreshPermission(const asio::ip::address &address)
TurnAllocation & operator=(const TurnAllocation &)=delete