# Class TTelnetSend

Description | Hierarchy | Fields | Methods | Properties

## 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

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

### Description

| `constructor Create;`

| `destructor Destroy; override;`

| `function Login: Boolean;`

Connects to Telnet server.

| `procedure Logout;`

Logout from telnet server.

| `function RecvString: string;`

Read string from telnet server.

| `function RecvTerminated(const Terminator: string): string;`

Read data terminated by terminator 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`.

## Properties

### Overview

| `property SessionLog: string;`
| `property Sock: TTCPBlockSocket;`
| `property TermType: string;`

### Description

| `property SessionLog: string;`

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

| `property Sock: TTCPBlockSocket;`

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

| `property TermType: string;`

Terminal type indentification. By default is 'SYNAPSE'.

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