MCPcopy Index your code
hub / github.com/python/cpython / data_received

Method data_received

Lib/test/test_asyncio/test_ssl.py:1712–1719  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

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:

Callers 1

test_protocolMethod · 0.95

Calls 2

writeMethod · 0.45
pause_readingMethod · 0.45

Tested by

no test coverage detected