MCPcopy
hub / github.com/sshuttle/sshuttle / flush

Method flush

sshuttle/ssnet.py:448–457  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

446 callback(cmd, data)
447
448 def flush(self):
449 set_non_blocking_io(self.wfile.fileno())
450 if self.outbuf and self.outbuf[0]:
451 wrote = _nb_clean(self.wfile.write, self.outbuf[0])
452 # self.wfile.flush()
453 debug2('mux wrote: %r/%d' % (wrote, len(self.outbuf[0])))
454 if wrote:
455 self.outbuf[0] = self.outbuf[0][wrote:]
456 while self.outbuf and not self.outbuf[0]:
457 self.outbuf[0:1] = []
458
459 def fill(self):
460 set_non_blocking_io(self.rfile.fileno())

Callers 15

callbackMethod · 0.95
test_get_tcp_dstipFunction · 0.80
test_logFunction · 0.80
test_debug1Function · 0.80
test_debug2Function · 0.80
test_debug3Function · 0.80
test_mainFunction · 0.80
assembler.pyFile · 0.80
startMethod · 0.80

Calls 3

set_non_blocking_ioFunction · 0.90
debug2Function · 0.90
_nb_cleanFunction · 0.85

Tested by 9

test_get_tcp_dstipFunction · 0.64
test_logFunction · 0.64
test_debug1Function · 0.64
test_debug2Function · 0.64
test_debug3Function · 0.64
test_mainFunction · 0.64