Lines Matching refs:port
44 def _setup_rpc(self, port, command_name, remote_pid=None): argument
79 self.disconnect(port)
81 tunnel_proc = self._host.rpc_port_forward(port, local_port)
82 self._rpc_proxy_map[port] = (command_name, tunnel_proc, remote_pid)
86 def xmlrpc_connect(self, command, port, command_name=None, argument
133 self.disconnect(port)
143 rpc_url = self._setup_rpc(port, command_name, remote_pid=remote_pid)
166 self.disconnect(port)
171 def jsonrpc_connect(self, port): argument
197 proxy = jsonrpclib.jsonrpc.ServerProxy(self._setup_rpc(port, None))
199 logging.info('Established a jsonrpc connection through port %s.', port)
203 def disconnect(self, port): argument
219 if port not in self._rpc_proxy_map:
221 remote_name, tunnel_proc, remote_pid = self._rpc_proxy_map[port]
250 self._host.rpc_port_disconnect(tunnel_proc, port)
251 del self._rpc_proxy_map[port]
256 for port in self._rpc_proxy_map.keys():
257 self.disconnect(port)