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

Method __init__

tests/test_windows_debugger.py:15–22  ·  view source on GitHub ↗
(self, host: str, port: int)

Source from the content-addressed store, hash-verified

13 DELAY = 0.6
14
15 def __init__(self, host: str, port: int):
16 sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
17 txtf = sock.makefile('w')
18
19 sock.connect((host, port))
20
21 self.__sock = sock
22 self.__file = txtf
23
24 def __enter__(self):
25 return self

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected