Class TTelnetSend

DescriptionHierarchyFieldsMethodsProperties

Unit

tlntsend

Declaration

type TTelnetSend = class(TSynaClient)

Description

Class with implementation of Telnet script client.

Note: Are you missing properties for specify server address and port? Look to parent TSynaClient too!

Hierarchy

TTelnetSend > TSynaClient > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public function Login: Boolean;
Public procedure Logout;
Public function RecvString: string;
Public function RecvTerminated(const Terminator: string): string;
Public procedure Send(const Value: string);
Public function WaitFor(const Value: string): Boolean;

Description

Public constructor Create;

 

Public destructor Destroy; override;

 

Public function Login: Boolean;

Connects to Telnet server.

Public procedure Logout;

Logout from telnet server.

Public function RecvString: string;

Read string from telnet server.

Public function RecvTerminated(const Terminator: string): string;

Read data terminated by terminator from telnet server.

Public procedure Send(const Value: string);

Send this data to telnet server.

Public 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.

Properties

Overview

Published property SessionLog: string;
Published property Sock: TTCPBlockSocket;
Published property TermType: string;

Description

Published property SessionLog: string;

all readed datas in this session (from connect) is stored in this large string.

Published property Sock: TTCPBlockSocket;

Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.

Published property TermType: string;

Terminal type indentification. By default is 'SYNAPSE'.


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:20