EndTransfer Event
Fired when a file completes downloading/uploading.
Syntax
ANSI (Cross Platform) virtual int FireEndTransfer(SCPEndTransferEventParams *e);
typedef struct {
int Direction;
const char *LocalFile;
const char *RemoteFile;
const char *RemotePath; int reserved; } SCPEndTransferEventParams; Unicode (Windows) virtual INT FireEndTransfer(SCPEndTransferEventParams *e);
typedef struct {
INT Direction;
LPCWSTR LocalFile;
LPCWSTR RemoteFile;
LPCWSTR RemotePath; INT reserved; } SCPEndTransferEventParams;
- (void)onEndTransfer:(int)direction :(NSString*)localFile :(NSString*)remoteFile :(NSString*)remotePath;
#define EID_SCP_ENDTRANSFER 4 virtual INT IPWORKSSSH_CALL FireEndTransfer(INT &iDirection, LPSTR &lpszLocalFile, LPSTR &lpszRemoteFile, LPSTR &lpszRemotePath);
Remarks
The EndTransfer event fires when either an upload or a download operation completes. This is when the file finishes transferring and/or a directory listing is finished.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.
The LocalFile, RemoteFile, and RemotePath parameters provide information about the current transfer.