MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/python3/tornado/test/tcpclient_test.py:42–48  ·  view source on GitHub ↗
(self, family)

Source from the content-addressed store, hash-verified

40
41class TestTCPServer(TCPServer):
42 def __init__(self, family):
43 super().__init__()
44 self.streams = [] # type: List[IOStream]
45 self.queue = Queue() # type: Queue[IOStream]
46 sockets = bind_sockets(0, "localhost", family)
47 self.add_sockets(sockets)
48 self.port = sockets[0].getsockname()[1]
49
50 def handle_stream(self, stream, address):
51 self.streams.append(stream)

Callers

nothing calls this directly

Calls 3

QueueClass · 0.90
bind_socketsFunction · 0.90
add_socketsMethod · 0.80

Tested by

no test coverage detected