def send(self, data): for chunk in chunks(data, RelayedTorCell.MAX_PAYLOD_SIZE): self._circuit.last_node.window.package_dec() self.send_relay(CellRelayData(chunk, self._circuit.id))
def send(self, data): # logger.debug('write to tor_stream: %r', data) for chunk in chunks(data, RelayedTorCell.MAX_PAYLOD_SIZE): self._circuit.last_node.window.package_dec() self._send_relay(CellRelayData(chunk, self._circuit.id))