Lines Matching defs:Allocation

65 // IDs used for posted messages for TurnServer::Allocation.
75 class TurnServer::Allocation : public rtc::MessageHandler,
78 Allocation(TurnServer* server_,
82 virtual ~Allocation();
96 sigslot::signal1<Allocation*> SignalDestroyed;
298 Allocation* allocation = FindAllocation(&conn);
331 Allocation* allocation = FindAllocation(conn);
362 // Allocation mismatch.
424 Allocation* allocation = FindAllocation(conn);
475 Allocation* alloc = CreateAllocation(conn, proto, key);
519 TurnServer::Allocation* TurnServer::FindAllocation(Connection* conn) {
524 TurnServer::Allocation* TurnServer::CreateAllocation(Connection* conn,
533 // The Allocation takes ownership of the socket.
534 Allocation* allocation = new Allocation(this,
591 void TurnServer::OnAllocationDestroyed(Allocation* allocation) {
644 TurnServer::Allocation::Allocation(TurnServer* server,
655 this, &TurnServer::Allocation::OnExternalPacket);
658 TurnServer::Allocation::~Allocation() {
668 LOG_J(LS_INFO, this) << "Allocation destroyed";
671 std::string TurnServer::Allocation::ToString() const {
677 void TurnServer::Allocation::HandleTurnMessage(const TurnMessage* msg) {
702 void TurnServer::Allocation::HandleAllocateRequest(const TurnMessage* msg) {
734 void TurnServer::Allocation::HandleRefreshRequest(const TurnMessage* msg) {
755 void TurnServer::Allocation::HandleSendIndication(const TurnMessage* msg) {
775 void TurnServer::Allocation::HandleCreatePermissionRequest(
797 void TurnServer::Allocation::HandleChannelBindRequest(const TurnMessage* msg) {
828 &TurnServer::Allocation::OnChannelDestroyed);
846 void TurnServer::Allocation::HandleChannelData(const char* data, size_t size) {
860 void TurnServer::Allocation::OnExternalPacket(
891 int TurnServer::Allocation::ComputeLifetime(const TurnMessage* msg) {
901 bool TurnServer::Allocation::HasPermission(const rtc::IPAddress& addr) {
905 void TurnServer::Allocation::AddPermission(const rtc::IPAddress& addr) {
910 this, &TurnServer::Allocation::OnPermissionDestroyed);
917 TurnServer::Permission* TurnServer::Allocation::FindPermission(
927 TurnServer::Channel* TurnServer::Allocation::FindChannel(int channel_id) const {
936 TurnServer::Channel* TurnServer::Allocation::FindChannel(
946 void TurnServer::Allocation::SendResponse(TurnMessage* msg) {
952 void TurnServer::Allocation::SendBadRequestResponse(const TurnMessage* req) {
956 void TurnServer::Allocation::SendErrorResponse(const TurnMessage* req, int code,
961 void TurnServer::Allocation::SendExternal(const void* data, size_t size,
967 void TurnServer::Allocation::OnMessage(rtc::Message* msg) {
973 void TurnServer::Allocation::OnPermissionDestroyed(Permission* perm) {
979 void TurnServer::Allocation::OnChannelDestroyed(Channel* channel) {