Lines Matching refs:addr
109 family, addr = random.choice([
113 socketpair = net_test.CreateSocketPair(family, socktype, addr)
116 socketpairs[(addr, sport, dport)] = socketpair
222 addr = self.sock_diag.GetSourceAddress(diag_msg)
225 if (addr, sport, dport) in self.socketpairs:
226 cookies[(addr, sport, dport)] = diag_msg.id.cookie
227 elif (addr, dport, sport) in self.socketpairs:
228 cookies[(addr, sport, dport)] = diag_msg.id.cookie
385 def CheckSocketCookie(self, inet, addr): argument
387 socketpair = net_test.CreateSocketPair(inet, SOCK_STREAM, addr)
931 def BindToRandomPort(self, s, addr): argument
936 s.bind((addr, port))
942 (addr, ATTEMPTS))
988 addr = self.GetRemoteSocketAddress(version)
991 s.connect((addr, 53))
998 self.assertEqual(3, s.sendto("foo", (addr, 53)))
1083 family, addr = random.choice([
1087 s1, s2 = net_test.CreateSocketPair(family, SOCK_STREAM, addr)
1128 for family, addr in testcases:
1131 server.bind((addr, 0))
1140 client.connect((addr, port))
1167 s.bind((addr, 0))