Connect Event
This event is fired when a remote connection has been established.
Syntax
ANSI (Cross Platform) virtual int FireConnect(SFTPServerConnectEventParams *e);
typedef struct {
int64 ConnectionID;
const char *RemoteAddress;
int RemotePort; int reserved; } SFTPServerConnectEventParams; Unicode (Windows) virtual INT FireConnect(SFTPServerConnectEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR RemoteAddress;
INT RemotePort; INT reserved; } SFTPServerConnectEventParams;
- (void)onConnect:(long long)connectionID :(NSString*)remoteAddress :(int)remotePort;
#define EID_SFTPSERVER_CONNECT 21 virtual INT SECUREBLACKBOX_CALL FireConnect(LONG64 &lConnectionID, LPSTR &lpszRemoteAddress, INT &iRemotePort);
Remarks
ConnectionID contains a session identifier, and RemoteAddress specifies the client's IP address.