MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / get

Method get

sshuttle/methods/windivert.py:224–229  ·  view source on GitHub ↗
(self, proto, src_addr, src_port)

Source from the content-addressed store, hash-verified

222 )
223
224 def get(self, proto, src_addr, src_port):
225 src_addr = ip_address(src_addr)
226 packed = self.struct_src_tuple.pack(proto, src_addr.version, src_addr.packed, src_port)
227 for entry in self.shm_list:
228 if entry and entry.startswith(packed):
229 return self._unpack(entry)
230
231 def dump(self):
232 for entry in self.shm_list:

Callers 13

addMethod · 0.95
_mock_getaddrinfoFunction · 0.80
get_random_nameserverFunction · 0.80
_notifyFunction · 0.80
next_channelMethod · 0.80
sendMethod · 0.80
got_packetMethod · 0.80
found_hostFunction · 0.80
_enqueueFunction · 0.80
windivert.pyFile · 0.80
get_tcp_dstipMethod · 0.80

Calls 1

_unpackMethod · 0.95

Tested by 1

_mock_getaddrinfoFunction · 0.64