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

Method got_packet

ssnet.py:513–522  ·  view source on GitHub ↗
(self, cmd, data)

Source from the content-addressed store, hash-verified

511 return None # no data available right now
512
513 def got_packet(self, cmd, data):
514 if cmd == CMD_EOF:
515 self.noread()
516 elif cmd == CMD_STOP_SENDING:
517 self.nowrite()
518 elif cmd == CMD_DATA:
519 self.buf.append(data)
520 else:
521 raise Exception('unknown command %d (%d bytes)'
522 % (cmd, len(data)))
523
524
525def connect_dst(ip, port):

Callers

nothing calls this directly

Calls 2

noreadMethod · 0.95
nowriteMethod · 0.95

Tested by

no test coverage detected