

def init(self, source, target, secure=False):
    self._source = source
    self._target = target
    self._secure = secure
    self._clients = dict()
    self._sockets = dict()
    server = TCPServer(self._source, secure=self._secure, channel='source')
    server.register(self)

dataset/ETHPy150Open circuits/circuits/examples/portforward.py PortForwarder.init/original