Home | History | Annotate | Download | only in base

Lines Matching refs:Port

28 #include "talk/p2p/base/port.h"
102 // The delay before we begin checking if this port is useless.
127 Port::Port(talk_base::Thread* thread, const std::string& type,
144 LOG_J(LS_INFO, this) << "Port created";
147 Port::~Port() {
163 Connection* Port::GetConnection(const talk_base::SocketAddress& remote_addr) {
171 void Port::AddAddress(const talk_base::SocketAddress& address,
190 void Port::AddConnection(Connection* conn) {
192 conn->SignalDestroyed.connect(this, &Port::OnConnectionDestroyed);
196 void Port::OnReadPacket(
198 // If the user has enabled port packets, just hand this over.
217 // connection for this port while it had STUN requests in flight, because
227 bool Port::GetStunMessage(const char* data, size_t size,
323 void Port::SendBindingResponse(StunMessage* request,
349 addr_attr->SetPort(addr.port());
370 void Port::SendBindingErrorResponse(StunMessage* request,
409 void Port::OnMessage(talk_base::Message *pmsg) {
416 std::string Port::ToString() const {
418 ss << "Port[" << name_ << ":" << type_ << ":" << network_->ToString() << "]";
422 void Port::EnablePortPackets() {
426 void Port::Start() {
427 // The port sticks around for a minimum lifetime, after which
433 LOG_J(LS_WARNING, this) << "Port restart attempted";
437 void Port::OnConnectionDestroyed(Connection* conn) {
446 void Port::Destroy() {
448 LOG_J(LS_INFO, this) << "Port deleted";
453 void Port::CheckTimeout() {
454 // If this port has no connections, then there's no reason to keep it around.
477 username.append(connection_->port()->username_fragment());
509 Connection::Connection(Port* port, size_t index,
511 : port_(port), local_candidate_index_(index),
514 requests_(port->thread()), rtt_(DEFAULT_RTT),
874 ProxyConnection::ProxyConnection(Port* port, size_t index,
876 : Connection(port, index, candidate), error_(0) {