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

Method copy_to

sshuttle/ssnet.py:267–274  ·  view source on GitHub ↗
(self, outwrap)

Source from the content-addressed store, hash-verified

265 self.noread()
266
267 def copy_to(self, outwrap):
268 if self.buf and self.buf[0]:
269 wrote = outwrap.write(self.buf[0])
270 self.buf[0] = self.buf[0][wrote:]
271 while self.buf and not self.buf[0]:
272 self.buf.pop(0)
273 if not self.buf and self.shut_read:
274 outwrap.nowrite()
275
276
277class Handler:

Callers 1

callbackMethod · 0.80

Calls 2

writeMethod · 0.80
nowriteMethod · 0.45

Tested by

no test coverage detected