wodFTPServer ActiveX Control - Send Method
      
 

Description

Sends string expression to the user.


Return Type

None  


Syntax

object.Send Code, Text



The Send Method syntax has these parts:

Part Description
object An expression evaluating to an object of type FtpUser.
Code Required. An Integer value. Holds reply code, as defined by FTP protocol specifications.
Text Required. 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.