Back to product page

Send method


Sends string expression to the user.

Type

None

Syntax

  • Basic
object.Send Code, Text
The Send(object,Code,Text) syntax has these parts:
objectAn expression evaluating to an object of type FtpUser.
CodeRequired. An Integer value. Holds reply code, as defined by FTP protocol specifications.
TextRequired. A String value. Holds reply text description.

Remarks

Send method is only valid in FTP and FTPS protocols. Sending custom data in SFTP (secure ftp over ssh2) is not possible, and refused by the component!

Send method will send custom message to the server at any time you want. Typically, you would use it inside Command event - when wodFTPServer received some commands, and you decide you will implement it by yourself. In such cases, you would set CmdLine = "" inside Command event, and then send data manually to the user using this method.

You should not put reply code (number) inside the Text argument, since wodFTPServer will do this for you. Also, if your Text has more than one lines, wodFTPServer will take care of proper placing of reply codes so the client doesn't get confused by your response.

Platforms

Windows