How to use the reprounzip-vagrant.reprounzip.unpackers.vagrant.run_command.SSHForwarder._ChannelWrapper function in reprounzip-vagrant

To help you get started, we’ve selected a few reprounzip-vagrant examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github VIDA-NYU / reprozip / reprounzip-vagrant / reprounzip / unpackers / vagrant / run_command.py View on Github external
def _new_connection(self, channel, src_addr, dest_addr):
        # Wraps the channel as a socket-like object that _forward() can use
        socklike = self._ChannelWrapper(channel)
        t = threading.Thread(target=self._forward,
                             args=(socklike, src_addr))
        t.setDaemon(True)
        t.start()