mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
This patch aims to add a polymorphism & RTTI example to the SShBasics reference examples set. Demonstrates: - Creating three different channels (Scp, SFtp, and SshExec) in the same Ssh object array, - Identifying and converting the stored Ssh objects to the proper channels respectively and calling them.
25 lines
678 B
C++
25 lines
678 B
C++
#ifndef _SshBasic_SshBasic_h
|
|
#define _SshBasic_SshBasic_h
|
|
|
|
#include <Core/Core.h>
|
|
#include <Core/SSH/SSH.h>
|
|
|
|
using namespace Upp;
|
|
|
|
void SFtpGet(SshSession& session);
|
|
void SFtpStreamGet(SshSession& session);
|
|
void SFtpTransparency(SshSession& session);
|
|
void SFtpAsyncGet(SshSession& session);
|
|
void SFtpAsyncGet2(SshSession& session);
|
|
void ExecListDir(SshSession& session);
|
|
void ExecAsyncListDir(SshSession& session);
|
|
void ShellConsole(SshSession& session);
|
|
void ScpGet(SshSession& session);
|
|
void ForwardTcpIp(SshSession& session);
|
|
void X11Forwarding(SshSession& session);
|
|
void SshPick(SshSession& session);
|
|
void SshPolymorphism(SshSession& session);
|
|
void TraceVerbose();
|
|
|
|
#endif
|
|
|