"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/Core/SSH/Channels.h" between
upp-x11-src-13648.tar.gz and upp-x11-src-13659.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

Channels.h  (upp-x11-src-13648):Channels.h  (upp-x11-src-13659)
skipping to change at line 48 skipping to change at line 48
bool SetReadWindowSize(uint32 size, bool force = false); bool SetReadWindowSize(uint32 size, bool force = false);
uint32 GetReadWindowSize() { return libssh2_channel_window_read(*channel); } uint32 GetReadWindowSize() { return libssh2_channel_window_read(*channel); }
uint32 GetWriteWindowSize() { return libssh2_channel_window_write(*channel); } uint32 GetWriteWindowSize() { return libssh2_channel_window_write(*channel); }
int GetExitCode(); int GetExitCode();
String GetExitSignal(); String GetExitSignal();
SshChannel(SshSession& session); SshChannel(SshSession& session);
virtual ~SshChannel(); virtual ~SshChannel();
SshChannel(SshChannel&&) = default; SshChannel(SshChannel&&) = default;
SshChannel& operator=(SshChannel&&) = default;
protected: protected:
bool Init() override; bool Init() override;
void Exit() override; void Exit() override;
int Read(void *ptr, int size, int sid = 0); int Read(void *ptr, int size, int sid = 0);
int Read(int sid = 0); int Read(int sid = 0);
int Write(const void *ptr, int size, int sid = 0); int Write(const void *ptr, int size, int sid = 0);
bool Write(char c, int sid = 0); bool Write(char c, int sid = 0);
bool SetWndSz(uint32 size, bool force = false); bool SetWndSz(uint32 size, bool force = false);
int SetPtySz(int w, int h); int SetPtySz(int w, int h);
skipping to change at line 109 skipping to change at line 108
bool Connect(const String& host, int port); bool Connect(const String& host, int port);
bool Connect(const String& url); bool Connect(const String& url);
bool Listen(int port, int listen_count = 5) { return Listen(Null, port, nullptr, listen_count); } bool Listen(int port, int listen_count = 5) { return Listen(Null, port, nullptr, listen_count); }
bool Listen(const String& host, int port, int* bound_port, int listen_count = 5); bool Listen(const String& host, int port, int* bound_port, int listen_count = 5);
bool Accept(SshTunnel& listener); bool Accept(SshTunnel& listener);
SshTunnel(SshSession& session) : SshChannel(session) { ssh->otype = TUNNEL; mode = NONE; ssh->init = true; } SshTunnel(SshSession& session) : SshChannel(session) { ssh->otype = TUNNEL; mode = NONE; ssh->init = true; }
virtual ~SshTunnel() { Exit(); } virtual ~SshTunnel() { Exit(); }
SshTunnel(SshTunnel&&) = default; SshTunnel(SshTunnel&&) = default;
SshTunnel& operator=(SshTunnel&&) = default;
private: private:
void Exit() override; void Exit() override;
bool IsValid(); bool IsValid();
int mode; int mode;
One<LIBSSH2_LISTENER*> listener; One<LIBSSH2_LISTENER*> listener;
enum Modes { NONE, CONNECT, LISTEN, ACCEPT }; enum Modes { NONE, CONNECT, LISTEN, ACCEPT };
}; };
skipping to change at line 146 skipping to change at line 144
Size GetPageSize() const { return psize; } Size GetPageSize() const { return psize; }
Size GetConsolePageSize(); Size GetConsolePageSize();
Event<> WhenInput; Event<> WhenInput;
Event<const void*, int> WhenOutput; Event<const void*, int> WhenOutput;
SshShell(SshSession& session); SshShell(SshSession& session);
virtual ~SshShell(); virtual ~SshShell();
SshShell(SshShell&&) = default; SshShell(SshShell&&) = default;
SshShell& operator=(SshShell&&) = default;
protected: protected:
void ReadWrite(String& in, const void* out, int out_len) override; void ReadWrite(String& in, const void* out, int out_len) override;
virtual bool Run(int mode_, const String& terminal, Size pagesize, const Str ing& tmodes); virtual bool Run(int mode_, const String& terminal, Size pagesize, const Str ing& tmodes);
void Resize(); void Resize();
bool ConsoleInit(); bool ConsoleInit();
void ConsoleRead(); void ConsoleRead();
void ConsoleWrite(const void* buffer, int len); void ConsoleWrite(const void* buffer, int len);
void ConsoleRawMode(bool b = true); void ConsoleRawMode(bool b = true);
 End of changes. 3 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)