Lines Matching refs:port
540 sock_id.sport = self.port
934 port = random.randrange(1024, 65535)
936 s.bind((addr, port))
937 return port
964 port = s.getsockname()[1]
970 port = self.BindToRandomPort(s, "")
973 self.assertEqual((unspec, port), s.getsockname()[:2])
978 port = self.BindToRandomPort(s, src)
980 self.assertEqual((src, port), s.getsockname()[:2])
1132 port = server.getsockname()[1]
1140 client.connect((addr, port))