def kill(self): Channel.kill(self) self._sock.close()
def __str__(self): return 'Onion' + Channel.__str__(self)
def __init__(self, fromNode, toNode, sock): Channel.__init__(self, fromNode, toNode) self._sock = sock