| 564 | loop = self.loop |
| 565 | |
| 566 | class MyProto(MyBaseProto): |
| 567 | |
| 568 | def connection_lost(self, exc): |
| 569 | super().connection_lost(exc) |
| 570 | loop.call_soon(loop.stop) |
| 571 | |
| 572 | def data_received(self, data): |
| 573 | super().data_received(data) |
| 574 | self.transport.write(expected_response) |
| 575 | |
| 576 | lsock = socket.socket(socket.AF_INET) |
| 577 | lsock.bind(('127.0.0.1', 0)) |
no outgoing calls
searching dependent graphs…