StartTransfer Event

Fired when a file starts downloading/uploading.


ANSI (Cross Platform)
virtual int FireStartTransfer(SFTPStartTransferEventParams *e);
typedef struct {
int Direction;
const char *LocalFile;
const char *RemoteFile; int reserved; } SFTPStartTransferEventParams; Unicode (Windows) virtual INT FireStartTransfer(SFTPStartTransferEventParams *e);
typedef struct {
INT Direction;
LPCWSTR LocalFile;
LPCWSTR RemoteFile; INT reserved; } SFTPStartTransferEventParams;
- (void)onStartTransfer:(int)direction :(NSString*)localFile :(NSString*)remoteFile;

virtual INT IPWORKSSFTP_CALL FireStartTransfer(INT &iDirection, LPSTR &lpszLocalFile, LPSTR &lpszRemoteFile);


The StartTransfer event fires when a Data Interface connection is created. This is when the file starts transferring and/or a directory listing is started.

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

LocalFile identifies the local file. RemoteFile is the remote file.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SFTP 2020 C++ Edition - Version 20.0 [Build 8162]