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

Method callback

ssnet.py:294–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 _add(r, self.wrap2.rsock)
293
294 def callback(self):
295 self.wrap1.try_connect()
296 self.wrap2.try_connect()
297 self.wrap1.fill()
298 self.wrap2.fill()
299 self.wrap1.copy_to(self.wrap2)
300 self.wrap2.copy_to(self.wrap1)
301 if self.wrap1.buf and self.wrap2.shut_write:
302 self.wrap1.buf = []
303 self.wrap1.noread()
304 if self.wrap2.buf and self.wrap1.shut_write:
305 self.wrap2.buf = []
306 self.wrap2.noread()
307 if (self.wrap1.shut_read and self.wrap2.shut_read and
308 not self.wrap1.buf and not self.wrap2.buf):
309 self.ok = False
310 self.wrap1.nowrite()
311 self.wrap2.nowrite()
312
313
314class 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