Lines Matching refs:local_addr_
128 return local_addr_; in GetLocalAddress()
136 local_addr_ = addr; in SetLocalAddress()
144 if (!local_addr_.IsNil()) { in Bind()
148 local_addr_ = addr; in Bind()
149 int result = server_->Bind(this, &local_addr_); in Bind()
151 local_addr_.Clear(); in Bind()
168 if (!local_addr_.IsNil() && bound_) { in Close()
170 server_->Unbind(local_addr_, this); in Close()
191 server_->LookupConnection(local_addr_, remote_addr_); in Close()
202 server_->RemoveConnection(remote_addr_, local_addr_); in Close()
203 server_->RemoveConnection(local_addr_, remote_addr_); in Close()
216 server_->LookupConnection(local_addr_, data->addr); in Close()
222 server_->RemoveConnection(local_addr_, data->addr); in Close()
235 local_addr_.Clear(); in Close()
314 if (local_addr_.IsNil()) { in Listen()
333 socket->SetLocalAddress(local_addr_); in Accept()
408 LOG(LS_VERBOSE) << "Socket at " << local_addr_ << " is not listening"; in OnMessage()
434 if (local_addr_.IsNil()) { in InitiateConnect()
464 server_->AddConnection(remote_addr_, local_addr_, this); in CompleteConnect()
474 if (local_addr_.IsNil()) { in SendUdp()
475 local_addr_ = EmptySocketAddressWithFamily(addr.ipaddr().family()); in SendUdp()
476 int result = server_->Bind(this, &local_addr_); in SendUdp()
478 local_addr_.Clear(); in SendUdp()
825 VirtualSocket* recipient = LookupConnection(socket->local_addr_, in SendTcp()
888 SocketAddress sender_addr = sender->local_addr_; in AddPacketToNetwork()