MCPcopy Create free account
hub / github.com/qilingframework/qiling / __init__

Method __init__

tests/test_debugger.py:21–28  ·  view source on GitHub ↗
(self, host: str, port: int)

Source from the content-addressed store, hash-verified

19 DELAY = 0.6
20
21 def __init__(self, host: str, port: int):
22 sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
23 txtf = sock.makefile('w')
24
25 sock.connect((host, port))
26
27 self.__sock = sock
28 self.__file = txtf
29
30 def __enter__(self):
31 return self

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected