MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/platform/windows.py:198–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 DEFAULT_TABLE_SIZE = 4096
197
198 def __init__(self):
199 self._tcp = MIB_TCPTABLE_OWNER_PID(self.DEFAULT_TABLE_SIZE)
200 self._tcp_size = ctypes.wintypes.DWORD(self.DEFAULT_TABLE_SIZE)
201 self._tcp6 = MIB_TCP6TABLE_OWNER_PID(self.DEFAULT_TABLE_SIZE)
202 self._tcp6_size = ctypes.wintypes.DWORD(self.DEFAULT_TABLE_SIZE)
203 self._map = {}
204
205 def __getitem__(self, item):
206 return self._map[item]

Callers

nothing calls this directly

Calls 2

MIB_TCPTABLE_OWNER_PIDFunction · 0.85
MIB_TCP6TABLE_OWNER_PIDFunction · 0.85

Tested by

no test coverage detected