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

Function SocketClient

Lib/multiprocessing/connection.py:679–687  ·  view source on GitHub ↗

Return a connection object connected to the socket given by `address`

(address)

Source from the content-addressed store, hash-verified

677
678
679def SocketClient(address):
680 '''
681 Return a connection object connected to the socket given by `address`
682 '''
683 family = address_type(address)
684 with socket.socket( getattr(socket, family) ) as s:
685 s.setblocking(True)
686 s.connect(address)
687 return Connection(s.detach())
688
689#
690# Definitions for connections based on named pipes

Callers 1

ClientFunction · 0.85

Calls 6

address_typeFunction · 0.85
socketMethod · 0.80
ConnectionClass · 0.70
setblockingMethod · 0.45
connectMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…