Exemplo n.º 1
0
 def add_inner_worker(self, forward_id, inner_ip, inner_port):
     #forward_id = worker.get_forward_id()
     worker = inner_worker.InnerWorker(
         forward_id, inner_ip, inner_port,
         self.__inner_to_outer_channel(forward_id),
         self.__connector_changed)
     self.__inner_map[forward_id] = worker
     return worker
Exemplo n.º 2
0
    def add_inner_worker(self, inner_socket, address):

        _worker_id = self.generate_worker_id()
        _inner_worker = inner_worker.InnerWorker(
            _worker_id, inner_socket, address,
            self.__inner_to_outer_channel(_worker_id),
            self.__connector_changed)

        self.__inner_workers[_worker_id] = _inner_worker
        return _inner_worker
Exemplo n.º 3
0
    def add_inner_worker(self, inner_socket):

        _worker_id = self.generate_worker_id()
        _inner_worker = inner_worker.InnerWorker(_worker_id, inner_socket)

        self.__inner_workers[_worker_id] = _inner_worker
Exemplo n.º 4
0
 def set_inner_worker(self, tun_connector):
     self.__inner_worker = inner_worker.InnerWorker(
         0, self.__dhcp_manager.get_tun_ip(), tun_connector,
         self.__inner_to_outer_channel())
     return self.__inner_worker
Exemplo n.º 5
0
 def set_inner_worker(self, tun_connector):
     self.__inner_worker = inner_worker.InnerWorker(
         tun_connector, self.__inner_to_outer_channel())
     return self.__inner_worker