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

Method got_packet

sshuttle/ssnet.py:568–579  ·  view source on GitHub ↗
(self, cmd, data)

Source from the content-addressed store, hash-verified

566 return None # no data available right now
567
568 def got_packet(self, cmd, data):
569 if cmd == CMD_TCP_EOF:
570 # Remote side already knows the status - set flag but don't notify
571 self.setnoread()
572 elif cmd == CMD_TCP_STOP_SENDING:
573 # Remote side already knows the status - set flag but don't notify
574 self.setnowrite()
575 elif cmd == CMD_TCP_DATA:
576 self.buf.append(data)
577 else:
578 raise Exception('unknown command %d (%d bytes)'
579 % (cmd, len(data)))
580
581
582def connect_dst(family, ip, port):

Callers

nothing calls this directly

Calls 2

setnoreadMethod · 0.95
setnowriteMethod · 0.95

Tested by

no test coverage detected