Пример #1
0
 def setUp(self):
     self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     TimeoutTest.PORT = support.bind_port(self.serv)
     self.serv.listen(5)
Пример #2
0
 def setUp(self):
     self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.port = support.bind_port(self.serv)
     self.source_port = support.find_unused_port()
     self.serv.listen(5)
     self.conn = None