Specifications

Chapter 18. TCP/IP
459
18.5 FTP Client
18.5.1 Overview
The FTP.FN3 library implements FTP client services for file transfers to and from FTP servers.
Note that there are no server capabilities.
This FTP client transfers files between operating systems in image (binary) format. The only
translation support is for line delimiter conversion.
Note that this FTP client does not convert between such double-byte character encodings as
Shift JIS and EUC. Provide your own code conversion if the server uses a different encoding--
for directory and file specifications, in particular.
18.5.2 File Formats
The FTP client classifies files into three types by their extensions: user programs (*.PD3),
extension libraries (*.FN3 and *.EX3), and data files (other extensions).
The following describes each file format in turn, assuming that the line delimiter setting speci-
fies the CR-LF combination: a carriage return (0Dh) plus a line feed (0Ah).
[ 1 ] User Programs (*.PD3)
The FTP client reserves the .PD3 extension for user program files generated by the BHT-
BASIC compiler.
Program files use a fixed record length of 128 bytes for all records except the last. These
records are separated with line delimiters.
CR LF
CR LF
CR LF
CR LF
CR LF
Program code
Record
Record length (128 bytes)