MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / get_server_io

Function get_server_io

sshuttle/ssh.py:223–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 s1.close()
222
223 def get_server_io():
224 os.close(pstdin)
225 os.close(pstdout)
226 return s2.makefile("rb", buffering=0), s2.makefile("wb", buffering=0)
227 else:
228 # In Windows CPython, BSD sockets are not supported as subprocess stdio
229 # and select.select() used in ssnet.py won't work on Windows pipes.

Callers 1

connectFunction · 0.85

Calls 3

makefilesMethod · 0.95
SocketRWShimClass · 0.90
closeMethod · 0.80

Tested by

no test coverage detected