Chapter 4 Using the FTP File Server
Supported FTP Commands
SDLT 600A Product Manual
85
Command
PORT
Syntax
port <SP> <host-port> <CRLF>
Parameters
- <host-port>: the concatenation of a 32-bit IP address and a 16-bit TCP port address.
<host-port> ::= <host-number>,<port-number>
<host-number> ::= <number>,<number>,<number>,<number>
<port-number> ::= <number>,<number>
<number> ::= any decimal integer 1 through 255
Purpose
This command changes the default data port value.
Command
PWD
Syntax
pwd <CRLF>
Parameters
N/A
Purpose
This command causes the name of the current working directory to be returned in the
reply.
Command
QUIT
Syntax
quit <CRLF>
Parameters
N/A
Purpose
This command closes the control connection opened with the sequence USER+PASS, if a
file transfer is not in progress.
If file transfer is in progress, the client should send an ABOR command before a QUIT.
Command
REST
Syntax
rest <SP> <marker> <CRLF>
Parameters
<marker>: offset in the file (in bytes) at which the transfer will be restarted.
Purpose
This command is useful to restart an interrupted transfer.
It gives to the server the byte position in the file at which the transfer will restart.
It must be immediately followed by a STOR or RETR command which shall cause file
transfer to resume.
Command
RETR (*)
Syntax
retr <SP> <pathname> <CRLF>
Parameters
<pathname>: an existing relative or absolute pathname.