FTP Check Reply VI

Owning Palette: Intermediate FTP VIs

Requires: Base Development System

Converts an FTP reply into a class (first digit), sub-class (second digit), and code (third digit). The VI also determines whether the reply is within an expected class.

(NI Linux Real-Time) The FTP server is disabled by default, and you cannot use it in safe mode. National Instruments recommends using WebDAV as the file transfer mechanism for improved security.

 Add to the block diagram  Find on the palette
reply is the reply code that an FTP command returns.
expected class is the class that reply is expected to be in. The default expected class is 500 – Permanent. The expected class can be any of the following values:

0unknown
1100 + Prelim
2200 +
3300 + Intermed
4400 – Transient
5500 – Permanent
class contains the class (first digit) of the reply. The class can be any of the following values:

0unknown
1100 + Prelim
2200 +
3300 + Intermed
4400 – Transient
5500 – Permanent
sub class contains the subclass (second digit) of the reply. The sub class can be any of the following values:
0Syntax
1Information
2Connection
3Authentication
4Unspecified
5File System
6Unknown
code contains the code (third digit) of the reply.
match returns TRUE if class is the same as expected class.