MCPcopy Create free account
hub / github.com/ARM-software/AVH / connectToServer

Method connectToServer

interface/video/python/vsi_video.py:56–66  ·  view source on GitHub ↗
(self, address, authkey)

Source from the content-addressed store, hash-verified

54 self.conn = None
55
56 def connectToServer(self, address, authkey):
57 for _ in range(50):
58 try:
59 self.conn = Client(address, authkey=authkey.encode('utf-8'))
60 if isinstance(self.conn, Connection):
61 break
62 else:
63 self.conn = None
64 except Exception:
65 self.conn = None
66 time.sleep(0.01)
67
68 def setFilename(self, filename, mode):
69 self.conn.send([self.SET_FILENAME, getcwd(), filename, mode])

Callers 1

initFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected