Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaSsh.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7#ifndef Q_HYODA_SSH_H
8#define Q_HYODA_SSH_H
9
10#include <QThread>
11#include <QProcess>
12
13/******************************************************************************
14 * Thread qui va gérer le process de port forwarding
15 *****************************************************************************/
16
17class QHyodaSsh: public QThread{
18 Q_OBJECT
19public:
20 QHyodaSsh(QString,QString,quint32,quint32,bool=false);
21 ~QHyodaSsh();
22 void run();
23 void setHost(QString);
24 quint32 getTcpAdrs(void){return tcpAdrs;}
25public slots:
26 void tunnelReadyReadStandardOutput(void);
27 void ceaHostReadyReadStandardOutput(void);
28private:
29 quint32 inetAton(const char *cp);
30private:
31 QString client_name;
32 QString inter_adrs;
33 QString inter_name;
34 QString rank_zero;
35 QProcess *tunnelProcess;
36 QProcess *ceaHostProcess;
37 bool via_interactive_hop;
38 quint32 tcpAdrs;
39 quint32 tcpPort;
40 bool singleShot;
41};
42
43#endif // Q_HYODA_SSH_H