CFtpServer::OnResult Method  
 
virtual void OnResult(
  UINT nClientId,  
  LPCTSTR lpszCommand,  
  UINT nResultCode  
);

A virtual method that is invoked after the server has processed a command issued by the client.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.
lpszCommand
A pointer to a string that specifies the command that was issued by the client. This value contains only the command and not the additional parameters that may have been specified.
nResultCode
An integer value that specifies the result code that was sent to the client.

Return Value

None.

Remarks

The OnResult event handler is invoked after the server has processed a command issued by the client. To implement an event handler, the application should create a class derived from the CFtpServer class, and then override this method.

To obtain the complete command line, use the GetCommandLine method, or use the GetCommandParam method to get the value of specific command parameters. If the application requires the text message that was sent to the client along with the result code, use the GetCommandResult method.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftsv10.lib
Unicode: Implemented as Unicode and ANSI versions.

See Also

GetCommandLine, GetCommandParam, GetCommandResult, OnCommand