Description | Hierarchy | Fields | Methods | Properties |
type TTelnetSend = class(TSynaClient)
Class with implementation of Telnet/SSH script client.
Note: Are you missing properties for specify server address and port? Look to parent TSynaClient too!
constructor Create; |
|
destructor Destroy; override; |
|
function Login: Boolean; |
|
function SSHLogin: Boolean; |
|
procedure Logout; |
|
procedure Send(const Value: string); |
|
function WaitFor(const Value: string): Boolean; |
|
function RecvTerminated(const Terminator: string): string; |
|
function RecvString: string; |
property Sock: TTCPBlockSocket read FSock; |
|
property SessionLog: Ansistring read FSessionLog write FSessionLog; |
|
property TermType: Ansistring read FTermType write FTermType; |
constructor Create; |
destructor Destroy; override; |
function Login: Boolean; |
Connects to Telnet server.
function SSHLogin: Boolean; |
Connects to SSH2 server and login by Username and Password properties.
You must use some of SSL plugins with SSH support. For exammple CryptLib.
procedure Logout; |
Logout from telnet server.
procedure Send(const Value: string); |
Send this data to telnet server.
function WaitFor(const Value: string): Boolean; |
Reading data from telnet server until Value is readed. If it is not readed until timeout, result is False
. Otherwise result is True
.
function RecvTerminated(const Terminator: string): string; |
Read data terminated by terminator from telnet server.
function RecvString: string; |
Read string from telnet server.
property Sock: TTCPBlockSocket read FSock; |
Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.
property SessionLog: Ansistring read FSessionLog write FSessionLog; |
all readed datas in this session (from connect) is stored in this large string.
property TermType: Ansistring read FTermType write FTermType; |
Terminal type indentification. By default is 'SYNAPSE'.