Lines Matching refs:SocketAddress
65 Packet(const char* data, size_t size, const SocketAddress& from) in Packet()
78 const SocketAddress& from() const { return from_; } in from()
89 SocketAddress from_;
93 explicit MessageAddress(const SocketAddress& a) : addr(a) { } in MessageAddress()
94 SocketAddress addr;
125 SocketAddress VirtualSocket::GetLocalAddress() const { in GetLocalAddress()
131 SocketAddress VirtualSocket::GetRemoteAddress() const { in GetRemoteAddress()
135 void VirtualSocket::SetLocalAddress(const SocketAddress& addr) { in SetLocalAddress()
139 void VirtualSocket::SetAlternativeLocalAddress(const SocketAddress& addr) { in SetAlternativeLocalAddress()
143 int VirtualSocket::Bind(const SocketAddress& addr) { in Bind()
163 int VirtualSocket::Connect(const SocketAddress& addr) { in Connect()
178 SocketAddress addr = listen_queue_->front(); in Close()
254 const SocketAddress& addr) { in SendTo()
267 SocketAddress addr; in Recv()
271 int VirtualSocket::RecvFrom(void* pv, size_t cb, SocketAddress* paddr) { in RecvFrom()
324 VirtualSocket* VirtualSocket::Accept(SocketAddress* paddr) { in Accept()
336 SocketAddress remote_addr(listen_queue_->front()); in Accept()
429 int VirtualSocket::InitiateConnect(const SocketAddress& addr, bool use_delay) { in InitiateConnect()
438 result = Bind(SocketAddress("0.0.0.0", 0)); in InitiateConnect()
440 result = Bind(SocketAddress("::", 0)); in InitiateConnect()
460 void VirtualSocket::CompleteConnect(const SocketAddress& addr, bool notify) { in CompleteConnect()
472 const SocketAddress& addr) { in SendUdp()
611 const SocketAddress& addr_local, in CloseTcpConnections()
612 const SocketAddress& addr_remote) { in CloseTcpConnections()
627 const SocketAddress& addr) { in Bind()
634 SocketAddress normalized(addr.ipaddr().Normalized(), addr.port()); in Bind()
640 int VirtualSocketServer::Bind(VirtualSocket* socket, SocketAddress* addr) { in Bind()
661 VirtualSocket* VirtualSocketServer::LookupBinding(const SocketAddress& addr) { in LookupBinding()
662 SocketAddress normalized(addr.ipaddr().Normalized(), in LookupBinding()
674 SocketAddress sock_addr = in LookupBinding()
683 int VirtualSocketServer::Unbind(const SocketAddress& addr, in Unbind()
685 SocketAddress normalized(addr.ipaddr().Normalized(), in Unbind()
692 void VirtualSocketServer::AddConnection(const SocketAddress& local, in AddConnection()
693 const SocketAddress& remote, in AddConnection()
697 SocketAddress local_normalized(local.ipaddr().Normalized(), in AddConnection()
699 SocketAddress remote_normalized(remote.ipaddr().Normalized(), in AddConnection()
707 const SocketAddress& local, in LookupConnection()
708 const SocketAddress& remote) { in LookupConnection()
709 SocketAddress local_normalized(local.ipaddr().Normalized(), in LookupConnection()
711 SocketAddress remote_normalized(remote.ipaddr().Normalized(), in LookupConnection()
718 void VirtualSocketServer::RemoveConnection(const SocketAddress& local, in RemoveConnection()
719 const SocketAddress& remote) { in RemoveConnection()
720 SocketAddress local_normalized(local.ipaddr().Normalized(), in RemoveConnection()
722 SocketAddress remote_normalized(remote.ipaddr().Normalized(), in RemoveConnection()
733 const SocketAddress& remote_addr, in Connect()
743 SocketAddress addr = socket->GetLocalAddress(); in Connect()
764 const SocketAddress& remote_addr) { in SendUdp()
888 SocketAddress sender_addr = sender->local_addr_; in AddPacketToNetwork()