MCPcopy Index your code
hub / github.com/LabPy/lantz / __init__

Method __init__

lantz/drivers/legacy/rpc.py:540–546  ·  view source on GitHub ↗
(self, host, prog, vers)

Source from the content-addressed store, hash-verified

538 """A TCP Client that find their server through the Port mapper
539 """
540 def __init__(self, host, prog, vers):
541 pmap = TCPPortMapperClient(host)
542 port = pmap.get_port((prog, vers, IPPROTO_TCP, 0))
543 pmap.close()
544 if port == 0:
545 raise RPCError('program not registered')
546 RawTCPClient.__init__(self, host, prog, vers, port)
547
548
549class UDPClient(RawUDPClient):

Callers

nothing calls this directly

Calls 5

TCPPortMapperClientClass · 0.85
RPCErrorClass · 0.85
get_portMethod · 0.80
closeMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected