Lines Matching refs:port
157 port = None variable in Device
300 cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.host, self.port),
566 port = self.d_port if not start_abc else self.abc_d_port
569 self._h_port, port)
572 "get_proxy d_port:{} {}".format(self._h_port, port))
576 rpc_proxy = OpenHarmony(port=self._h_port, addr=self.host, device=self)
739 def is_harmony_rpc_socket_running(self, port, check_server=True): argument
740 out = self.execute_shell_command("netstat -anp | grep {}".format(port))
746 if "LISTEN" in data and str(port) in data:
749 if "hdcd" in data and str(port) in data:
754 port = self.d_port if not check_abc else self.abc_d_port
756 self.is_harmony_rpc_socket_running(port, check_server=check_server):
803 self._proxy.init(port=self._h_port, addr=self.host, device=self)
806 self._proxy.init(port=self._h_port, addr=self.host, device=self)
818 self._abc_proxy.init(port=self._h_port, addr=self.host, device=self)
821 self._abc_proxy.init(port=self._h_port, addr=self.host, device=self)
833 port = None
834 h_port = get_forward_port(self, host, port)
844 for port in self.forward_ports:
846 port, self.d_port)
848 for port in self.forward_ports_abc:
850 port, self.abc_d_port)
855 def remove_history_ports(self, port): argument
860 if str(port) in data:
899 self.host, self.port), "-t", self.device_sn, "shell"]
977 … cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.device.host, self.device.port),