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

Method copy_to

ssnet.py:235–242  ·  view source on GitHub ↗
(self, outwrap)

Source from the content-addressed store, hash-verified

233 self.noread()
234
235 def copy_to(self, outwrap):
236 if self.buf and self.buf[0]:
237 wrote = outwrap.write(self.buf[0])
238 self.buf[0] = self.buf[0][wrote:]
239 while self.buf and not self.buf[0]:
240 self.buf.pop(0)
241 if not self.buf and self.shut_read:
242 outwrap.nowrite()
243
244
245class Handler:

Callers 1

callbackMethod · 0.80

Calls 2

writeMethod · 0.45
nowriteMethod · 0.45

Tested by

no test coverage detected