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

Function Client

Lib/multiprocessing/connection.py:510–528  ·  view source on GitHub ↗

Returns a connection to the address of a `Listener`

(address, family=None, authkey=None)

Source from the content-addressed store, hash-verified

508
509
510def Client(address, family=None, authkey=None):
511 '''
512 Returns a connection to the address of a `Listener`
513 '''
514 family = family or address_type(address)
515 _validate_family(family)
516 if family == 'AF_PIPE':
517 c = PipeClient(address)
518 else:
519 c = SocketClient(address)
520
521 if authkey is not None and not isinstance(authkey, bytes):
522 raise TypeError('authkey should be a byte string')
523
524 if authkey is not None:
525 answer_challenge(c, authkey)
526 deliver_challenge(c, authkey)
527
528 return c
529
530
531if sys.platform != 'win32':

Callers 5

XmlClientFunction · 0.70
connectMethod · 0.70
get_connectionMethod · 0.70
stopMethod · 0.70
do_handshakeMethod · 0.50

Calls 7

address_typeFunction · 0.85
_validate_familyFunction · 0.85
PipeClientFunction · 0.85
SocketClientFunction · 0.85
isinstanceFunction · 0.85
answer_challengeFunction · 0.85
deliver_challengeFunction · 0.85

Tested by

no test coverage detected