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

Function receive

Lib/test/test_socketserver.py:38–43  ·  view source on GitHub ↗
(sock, n, timeout=test.support.SHORT_TIMEOUT)

Source from the content-addressed store, hash-verified

36_real_select = select.select
37
38def receive(sock, n, timeout=test.support.SHORT_TIMEOUT):
39 r, w, x = _real_select([sock], [], [], timeout)
40 if sock in r:
41 return sock.recv(n)
42 else:
43 raise RuntimeError("timed out on %r" % (sock,))
44
45
46@test.support.requires_fork() # TODO: RUSTPYTHON, os.fork is currently only supported on Unix-based systems

Callers 2

stream_examineMethod · 0.85
dgram_examineMethod · 0.85

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected