Definition at line 149 of file nxclientlib.h.
◆ allowSSHConnect()
void nxcl::NXClientLib::allowSSHConnect |
( |
bool |
auth | ) |
|
Passes auth to this->session.setContinue()
◆ chooseResumable()
bool nxcl::NXClientLib::chooseResumable |
( |
int |
n | ) |
|
Read through the nx session file, and if we find a message saying "Session: Terminating session at
'some date'" we need to set isFinished to true.
Re-set the contents of this->session.sessionData with the nth choice.
- Returns
- true if the nth session is resumable, false if not, or if there is no nth session.
◆ doneAuth()
void nxcl::NXClientLib::doneAuth |
( |
void |
| ) |
|
|
virtual |
◆ finished()
void nxcl::NXClientLib::finished |
( |
void |
| ) |
|
|
inline |
◆ getIsFinished()
bool nxcl::NXClientLib::getIsFinished |
( |
void |
| ) |
|
|
inline |
◆ getNXAuthProcess()
notQProcess * nxcl::NXClientLib::getNXAuthProcess |
( |
void |
| ) |
|
|
inline |
◆ getNXProxyProcess()
notQProcess * nxcl::NXClientLib::getNXProxyProcess |
( |
void |
| ) |
|
|
inline |
◆ getNXSSHProcess()
notQProcess * nxcl::NXClientLib::getNXSSHProcess |
( |
void |
| ) |
|
|
inline |
◆ getReadyForProxy()
bool nxcl::NXClientLib::getReadyForProxy |
( |
void |
| ) |
|
|
inline |
◆ getSession()
NXSession * nxcl::NXClientLib::getSession |
( |
void |
| ) |
|
|
inline |
◆ getSessionRunning()
bool nxcl::NXClientLib::getSessionRunning |
( |
void |
| ) |
|
|
inline |
◆ getX11Process()
notQProcess * nxcl::NXClientLib::getX11Process |
( |
void |
| ) |
|
|
inline |
◆ invokeNXSSH()
void nxcl::NXClientLib::invokeNXSSH |
( |
string |
publicKey = "supplied" , |
|
|
string |
serverHost = "" , |
|
|
bool |
encryption = true , |
|
|
string |
key = "" , |
|
|
int |
port = 22 |
|
) |
| |
Set up data and then call this->nxsshProcess.start().
- Parameters
-
publicKey | is the path to the ssh public key file to authenticate with. Pass "supplied" to use a new key, which you should then supply as the parameter key. |
serverHost | is the hostname of the NX server to connect to |
encryption | is whether to use an encrypted NX session |
key | ssh key to use for authentication of the nx user if publicKey is "supplied". |
port | TCP port to use for the ssh connection. |
◆ invokeProxy()
void nxcl::NXClientLib::invokeProxy |
( |
void |
| ) |
|
Set up data and then call this->nxproxyProcess.start()
◆ loginFailed()
void nxcl::NXClientLib::loginFailed |
( |
void |
| ) |
|
|
virtual |
◆ needX11Probe()
bool nxcl::NXClientLib::needX11Probe |
( |
void |
| ) |
|
|
inline |
◆ parseSSH()
string nxcl::NXClientLib::parseSSH |
( |
string |
message | ) |
|
Parse a line of output from this->nxsshProcess. This is called when the proxy has started, or if NX authentication failed. Otherwise, this->session.parseSSH() is used.
◆ processParseStderr()
void nxcl::NXClientLib::processParseStderr |
( |
void |
| ) |
|
|
virtual |
◆ processParseStdout()
void nxcl::NXClientLib::processParseStdout |
( |
void |
| ) |
|
|
virtual |
◆ readyproxy()
void nxcl::NXClientLib::readyproxy |
( |
void |
| ) |
|
|
inlinevirtual |
◆ requestConfirmation()
void nxcl::NXClientLib::requestConfirmation |
( |
string |
msg | ) |
|
SSH requests confirmation to go ahead with connecting (e.g. if you haven't connected to the host before)
◆ setCustomPath()
void nxcl::NXClientLib::setCustomPath |
( |
string |
path | ) |
|
|
inline |
◆ setDepth()
void nxcl::NXClientLib::setDepth |
( |
int |
depth | ) |
|
|
inline |
◆ setExternalCallbacks()
◆ setIsFinished()
void nxcl::NXClientLib::setIsFinished |
( |
bool |
status | ) |
|
|
inlinevirtual |
◆ setPassword()
void nxcl::NXClientLib::setPassword |
( |
string & |
pass | ) |
|
|
inline |
Set the password for NX to log in with
Definition at line 291 of file nxclientlib.h.
◆ setRender()
void nxcl::NXClientLib::setRender |
( |
bool |
render | ) |
|
|
inline |
◆ setResolution()
void nxcl::NXClientLib::setResolution |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
◆ setUsername()
void nxcl::NXClientLib::setUsername |
( |
string & |
user | ) |
|
|
inline |
◆ terminateSession()
bool nxcl::NXClientLib::terminateSession |
( |
int |
n | ) |
|
Re-set the contents of this->session.sessionData with the nth choice such that a terminate session message will be sent to the nxserver
- Returns
- true if the nth session is terminatable, false if not, or if there is no nth session.
◆ write()
void nxcl::NXClientLib::write |
( |
string |
data | ) |
|
Overloaded to give callback data on write.
Writes data to this->nxsshProcess stdin and also out to the user via stdoutCallback
The documentation for this class was generated from the following file: