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

Function SocketClient

Lib/multiprocessing/connection.py:640–648  ·  view source on GitHub ↗

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

(address)

Source from the content-addressed store, hash-verified

638
639
640def SocketClient(address):
641 '''
642 Return a connection object connected to the socket given by `address`
643 '''
644 family = address_type(address)
645 with socket.socket( getattr(socket, family) ) as s:
646 s.setblocking(True)
647 s.connect(address)
648 return Connection(s.detach())
649
650#
651# Definitions for connections based on named pipes

Callers 1

ClientFunction · 0.85

Calls 7

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

Tested by

no test coverage detected