Home | History | Annotate | Download | only in client

Lines Matching refs:Port

37 #include "talk/p2p/base/port.h"
72 // Returns the phase in which a given local candidate (or rather, the port that
234 delete it->port;
260 ports_[i].port->Start();
393 void BasicPortAllocatorSession::AddAllocatedPort(Port* port,
397 if (!port)
400 port->set_name(name_);
401 port->set_preference(pref);
402 port->set_generation(generation());
404 port->set_proxy(allocator_->user_agent(), allocator_->proxy());
407 data.port = port;
412 port->SignalAddressReady.connect(this,
414 port->SignalConnectionCreated.connect(this,
416 port->SignalDestroyed.connect(this,
418 LOG_J(LS_INFO, port) << "Added port to allocator";
421 port->PrepareAddress();
423 port->Start();
426 void BasicPortAllocatorSession::OnAddressReady(Port *port) {
429 = std::find(ports_.begin(), ports_.end(), port);
434 SignalPortReady(this, port);
438 const std::vector<Candidate>& potentials = port->candidates();
460 const std::vector<Candidate>& potentials = it->port->candidates();
475 void BasicPortAllocatorSession::OnPortDestroyed(Port* port) {
478 std::find(ports_.begin(), ports_.end(), port);
482 LOG_J(LS_INFO, port) << "Removed port from allocator ("
486 void BasicPortAllocatorSession::OnConnectionCreated(Port* port,
501 std::vector<Port*> ports;
506 ports.push_back(ports_[i].port);
510 Port::AddressMap::const_iterator iter;
666 Port* port = UDPPort::Create(session_->network_thread(),
671 if (port)
672 session_->AddAllocatedPort(port, this, PREF_LOCAL_UDP);
681 Port* port = TCPPort::Create(session_->network_thread(),
687 if (port)
688 session_->AddAllocatedPort(port, this, PREF_LOCAL_TCP);
706 Port* port = StunPort::Create(session_->network_thread(),
712 if (port)
713 session_->AddAllocatedPort(port, this, PREF_LOCAL_STUN);
734 RelayPort* port = RelayPort::Create(session_->network_thread(),
741 if (port) {
742 // Note: We must add the allocated port before we add addresses because
747 session_->AddAllocatedPort(port, this, PREF_RELAY + relay->pref_modifier,
755 port->AddServerAddress(*relay_port);
756 port->AddExternalAddress(*relay_port);
759 // Start fetching an address for this port.
760 port->PrepareAddress();