(self, data)
| 1710 | self.transport = transport |
| 1711 | |
| 1712 | def data_received(self, data): |
| 1713 | if data == b'hello': |
| 1714 | self.transport.write(b'world') |
| 1715 | # pause reading would make incoming data stay in the sslobj |
| 1716 | self.transport.pause_reading() |
| 1717 | else: |
| 1718 | nonlocal extra |
| 1719 | extra = data |
| 1720 | |
| 1721 | def connection_lost(self, exc): |
| 1722 | if exc is None: |
no test coverage detected