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

Method client

Lib/test/test_asyncio/test_server.py:82–88  ·  view source on GitHub ↗
(sock, addr)

Source from the content-addressed store, hash-verified

80 started = threading.Event()
81
82 def client(sock, addr):
83 sock.settimeout(2)
84 started.wait(5)
85 sock.connect(addr)
86 sock.send(HELLO_MSG)
87 sock.recv_all(1)
88 sock.close()
89
90 async def serve(reader, writer):
91 await reader.readline()

Callers

nothing calls this directly

Calls 6

settimeoutMethod · 0.45
waitMethod · 0.45
connectMethod · 0.45
sendMethod · 0.45
recv_allMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected