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

Method __init__

sshuttle/server.py:258–264  ·  view source on GitHub ↗
(self, mux, chan, family)

Source from the content-addressed store, hash-verified

256class UdpProxy(Handler):
257
258 def __init__(self, mux, chan, family):
259 sock = socket.socket(family, socket.SOCK_DGRAM)
260 Handler.__init__(self, [sock])
261 self.timeout = time.time() + 30
262 self.mux = mux
263 self.chan = chan
264 self.sock = sock
265
266 def send(self, dstip, data):
267 debug2('UDP: sending to %r port %d' % dstip)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected