MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / fromshare

Function fromshare

tools/python-3.11.9-amd64/Lib/socket.py:584–590  ·  view source on GitHub ↗

fromshare(info) -> socket object Create a socket object from the bytes object returned by socket.share(pid).

(info)

Source from the content-addressed store, hash-verified

582
583if hasattr(_socket.socket, "share"):
584 def fromshare(info):
585 """ fromshare(info) -> socket object
586
587 Create a socket object from the bytes object returned by
588 socket.share(pid).
589 """
590 return socket(0, 0, 0, info)
591 __all__.append("fromshare")
592
593if hasattr(_socket, "socketpair"):

Callers

nothing calls this directly

Calls 1

socketClass · 0.85

Tested by

no test coverage detected