MCPcopy Create free account
hub / github.com/LabPy/lantz / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

550 """A UDP Client that find their server through the Port mapper
551 """
552 def __init__(self, host, prog, vers):
553 pmap = UDPPortMapperClient(host)
554 port = pmap.get_port((prog, vers, IPPROTO_UDP, 0))
555 pmap.close()
556 if port == 0:
557 raise RPCError('program not registered')
558 RawUDPClient.__init__(self, host, prog, vers, port)
559
560
561class BroadcastUDPClient(Client):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected