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

Method next_channel

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

Source from the content-addressed store, hash-verified

366 self.send(0, CMD_PING, b('chicken'))
367
368 def next_channel(self):
369 # channel 0 is special, so we never allocate it
370 for _ in range(1024):
371 self.chani += 1
372 if self.chani > MAX_CHANNEL:
373 self.chani = 1
374 if not self.channels.get(self.chani):
375 return self.chani
376
377 def amount_queued(self):
378 total = 0

Callers 3

onaccept_tcpFunction · 0.80
onaccept_udpFunction · 0.80
ondnsFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected