MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / new_channel

Function new_channel

server.py:222–226  ·  view source on GitHub ↗
(channel, data)

Source from the content-addressed store, hash-verified

220 mux.got_host_req = got_host_req
221
222 def new_channel(channel, data):
223 (dstip,dstport) = data.split(',', 1)
224 dstport = int(dstport)
225 outwrap = ssnet.connect_dst(dstip,dstport)
226 handlers.append(Proxy(MuxWrapper(mux, channel), outwrap))
227 mux.new_channel = new_channel
228
229 dnshandlers = {}

Callers

nothing calls this directly

Calls 2

ProxyClass · 0.90
MuxWrapperClass · 0.90

Tested by

no test coverage detected