FTP


10.2, PLBCMP GUI Only

square.png Methods

 

The FTP ( File Transfer Protocol ) object allows a PL/B program to connect as a ftp client to a ftp server and execute ftp commands to manage and transfer files. The FTP object has a full set of commands implemented as PL/B methods to provide feature-rich development capabilities. To define a FTP, use the following statement format:

 

(1)

[label]

FTP

[%|^][arraysize]

 

Where:

label

Optional. A Data Label.

%

Optional. Denotes the item as being GLOBAL.

^

Optional. Denotes the item as being a POINTER.

arraysize

Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.

Flags Affected: NONE

Note the following:

  1. The FTP object is a runtime instance component that can be used directly without having to be created. There are no properties, events, or instructions for a FTP object. All interaction with the FTP object is through methods.

  2. The FTP object exists as an internal PL/B object and it is referenced by a label for a FTP object declared in a PL/B program. Even though there may be multiple or different program references declared in a PL/B program, all of the PL/B program references access only one internal FTP object for a runtime instance.

  3. The FTP object is implemented to include a full set of ftp commands that allow bi-directional file transfers and other ftp client-server management commands. All of the ftp commands are implemented by methods that are named as follows:

  4.  

    Ascii

    Binary

    Cd

    Close

    Connect

    Debug

    Delete

    Dir

    DirItem

    Get

    MkDir

    Put

    Pwd

    Rename

    RmDir

    Size

    ModDate

    LastResponse

    Site

    Systype

 

 

See Also: Object Definitions, Object Output Instructions

 



PL/B Language Reference FONT GROUPBOX