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

Method next_channel

ssnet.py:330–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328 self.send(0, CMD_PING, 'chicken')
329
330 def next_channel(self):
331 # channel 0 is special, so we never allocate it
332 for timeout in xrange(1024):
333 self.chani += 1
334 if self.chani > MAX_CHANNEL:
335 self.chani = 1
336 if not self.channels.get(self.chani):
337 return self.chani
338
339 def amount_queued(self):
340 total = 0

Callers 2

onacceptFunction · 0.80
ondnsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected