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

Method flush

ssnet.py:408–416  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

406 callback(cmd, data)
407
408 def flush(self):
409 self.wsock.setblocking(False)
410 if self.outbuf and self.outbuf[0]:
411 wrote = _nb_clean(os.write, self.wsock.fileno(), self.outbuf[0])
412 debug2('mux wrote: %r/%d\n' % (wrote, len(self.outbuf[0])))
413 if wrote:
414 self.outbuf[0] = self.outbuf[0][wrote:]
415 while self.outbuf and not self.outbuf[0]:
416 self.outbuf[0:1] = []
417
418 def fill(self):
419 self.rsock.setblocking(False)

Callers 12

callbackMethod · 0.95
assembler.pyFile · 0.80
startMethod · 0.80
sethostipMethod · 0.80
_mainFunction · 0.80
mainFunction · 0.80
stderr_to_syslogFunction · 0.80
empackageFunction · 0.80
logFunction · 0.80
mainFunction · 0.80
hw_mainFunction · 0.80
_communicateMethod · 0.80

Calls 2

_nb_cleanFunction · 0.85
debug2Function · 0.85

Tested by

no test coverage detected