MCPcopy Index your code
hub / github.com/RustPython/RustPython / data_received

Method data_received

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

Source from the content-addressed store, hash-verified

1718 self.transport = transport
1719
1720 def data_received(self, data):
1721 if data == b'hello':
1722 self.transport.write(b'world')
1723 # pause reading would make incoming data stay in the sslobj
1724 self.transport.pause_reading()
1725 else:
1726 nonlocal extra
1727 extra = data
1728
1729 def connection_lost(self, exc):
1730 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