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

Method callback

sshuttle/ssnet.py:330–347  ·  view source on GitHub ↗
(self, sock)

Source from the content-addressed store, hash-verified

328 _add(r, self.wrap2.rsock)
329
330 def callback(self, sock):
331 self.wrap1.try_connect()
332 self.wrap2.try_connect()
333 self.wrap1.fill()
334 self.wrap2.fill()
335 self.wrap1.copy_to(self.wrap2)
336 self.wrap2.copy_to(self.wrap1)
337 if self.wrap1.buf and self.wrap2.shut_write:
338 self.wrap1.buf = []
339 self.wrap1.noread()
340 if self.wrap2.buf and self.wrap1.shut_write:
341 self.wrap2.buf = []
342 self.wrap2.noread()
343 if (self.wrap1.shut_read and self.wrap2.shut_read and
344 not self.wrap1.buf and not self.wrap2.buf):
345 self.ok = False
346 self.wrap1.nowrite()
347 self.wrap2.nowrite()
348
349
350class Mux(Handler):

Callers

nothing calls this directly

Calls 5

try_connectMethod · 0.80
copy_toMethod · 0.80
fillMethod · 0.45
noreadMethod · 0.45
nowriteMethod · 0.45

Tested by

no test coverage detected