Lines Matching refs:port_

88   TurnPort* port_;
100 TurnPort* port_;
116 TurnPort* port_;
134 TurnPort* port_;
148 TurnPort* port() { return port_; }
170 TurnPort* port_;
823 port_(port) {
833 if (!port_->hash().empty()) {
834 port_->AddRequestAuthInfo(request);
843 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_XOR_MAPPED_ADDRESS "
848 port_->OnStunAddress(mapped_attr->GetAddress());
853 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_XOR_RELAYED_ADDRESS "
861 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_TURN_LIFETIME attribute in "
866 port_->OnAllocateSuccess(relayed_attr->GetAddress(),
868 port_->ScheduleRefresh(lifetime_attr->value());
884 port_->thread()->Post(port_, TurnPort::MSG_ALLOCATE_MISMATCH);
887 LOG_J(LS_WARNING, port_) << "Allocate response error, code="
889 port_->OnAllocateError();
894 LOG_J(LS_WARNING, port_) << "Allocate request timeout";
895 port_->OnAllocateRequestTimeout();
900 if (code == STUN_ERROR_UNAUTHORIZED && !port_->hash().empty()) {
901 LOG_J(LS_WARNING, port_) << "Failed to authenticate with the server "
903 port_->OnAllocateError();
911 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_REALM attribute in "
915 port_->set_realm(realm_attr->GetString());
920 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_NONCE attribute in "
924 port_->set_nonce(nonce_attr->GetString());
927 port_->SendRequest(new TurnAllocateRequest(port_), 0);
932 if (port_->server_address().proto != PROTO_UDP) {
933 LOG_J(LS_WARNING, port_) << "Receiving 300 Alternate Server on non-UDP "
935 << port_->server_address().address.ToSensitiveString()
937 port_->OnAllocateError();
949 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_ALTERNATE_SERVER "
951 port_->OnAllocateError();
954 if (!port_->SetAlternateServer(alternate_server_attr->GetAddress())) {
955 port_->OnAllocateError();
963 LOG_J(LS_INFO, port_) << "Applying STUN_ATTR_REALM attribute in "
965 port_->set_realm(realm_attr->GetString());
971 LOG_J(LS_INFO, port_) << "Applying STUN_ATTR_NONCE attribute in "
973 port_->set_nonce(nonce_attr->GetString());
978 port_->SendRequest(new TurnAllocateRequest(port_), 0);
983 port_(port) {
990 port_->AddRequestAuthInfo(request);
998 LOG_J(LS_WARNING, port_) << "Missing STUN_ATTR_TURN_LIFETIME attribute in "
1004 port_->ScheduleRefresh(lifetime_attr->value());
1009 LOG_J(LS_WARNING, port_) << "Refresh response error, code="
1013 if (port_->UpdateNonce(response)) {
1015 port_->SendRequest(new TurnRefreshRequest(port_), 0);
1027 port_(port),
1039 port_->AddRequestAuthInfo(request);
1056 LOG_J(LS_WARNING, port_) << "Create permission timeout";
1068 port_(port),
1083 port_->AddRequestAuthInfo(request);
1105 LOG_J(LS_WARNING, port_) << "Channel bind timeout";
1115 : port_(port),
1124 port_->SendRequest(new TurnCreatePermissionRequest(
1125 port_, this, ext_addr_), 0);
1129 port_->SendRequest(new TurnChannelBindRequest(
1130 port_, this, channel_id_, ext_addr_), delay);
1159 return port_->Send(buf.Data(), buf.Length(), options);
1163 LOG_J(LS_INFO, port_) << "Create permission for "
1167 port_->SignalCreatePermissionResult(port_, ext_addr_, 0);
1171 LOG_J(LS_WARNING, port_) << "Create permission for "
1175 if (port_->UpdateNonce(response)) {
1180 port_->SignalCreatePermissionResult(port_, ext_addr_, code);
1185 LOG_J(LS_INFO, port_) << "Channel bind for " << ext_addr_.ToSensitiveString()
1194 LOG_J(LS_WARNING, port_) << "Channel bind for "
1198 if (port_->UpdateNonce(response)) {