MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / __init__

Method __init__

monkey/monkey.py:24–32  ·  view source on GitHub ↗
(self, host, port)

Source from the content-addressed store, hash-verified

22
23class Client(asyncore.dispatcher):
24 def __init__(self, host, port):
25 asyncore.dispatcher.__init__(self)
26 self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
27 self.connect((host, port))
28 self.buf = b''
29 self.inbuf = b''
30 self.callbacks = list()
31 self.client_id = 0
32 self.get_client_id()
33
34 def handle_connect(self):
35 pass

Callers

nothing calls this directly

Calls 2

get_client_idMethod · 0.95
listClass · 0.50

Tested by

no test coverage detected