Class TTFTPSend
Unit
ftptsend
Declaration
type TTFTPSend = class(TSynaClient)
Description
Implementation of TFTP client and serverNote: Are you missing properties for specify server address and port? Look to
parent TSynaClient too!
Hierarchy
TTFTPSend > TSynaClient > TObjectMethods
Overview
Description
 |
constructor Create; |
 |
destructor Destroy; override; |
 |
function RecvFile(const Filename: string): Boolean; |
Download file from TFTP server to Data.
 |
procedure ReplyError(Error: word; Description: string); |
send error to TFTP client, when you acts as TFTP server.
 |
function ReplyRecv: Boolean; |
Accept uploaded file from TFTP client to Data, when you acts as
TFTP server.
 |
function ReplySend: Boolean; |
Accept download request file from TFTP client and send content of
Data, when you acts as TFTP server.
 |
function SendFile(const Filename: string): Boolean; |
Upload Data as file to TFTP server.
 |
function WaitForRequest(var Req: word; var filename: string): Boolean; |
Acts as TFTP server and wait for client request. When some request
incoming within Timeout, result is True
and parametres is filled with
information from request. You must handle this request, validate it, and
call ReplyError, ReplyRecv or ReplySend for send reply
to TFTP Client.
Properties
Overview
Description
 |
property Data: TMemoryStream; |
MemoryStream with datas for sending or receiving
 |
property ErrorCode: integer; |
Code of TFTP error.
 |
property ErrorString: string; |
Human readable decription of TFTP error. (if is sended by remote side)
 |
property RequestIP: string; |
Address of TFTP remote side.
 |
property RequestPort: string; |
Port of TFTP remote side.
Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:18