Accept Event
This event is fired when new incoming connection is accepted.
Syntax
typedef struct { String RemoteAddress; int RemotePort; bool Accept; } TsbxSFTPServerAcceptEventParams; typedef void __fastcall (__closure *TsbxSFTPServerAcceptEvent)(System::TObject* Sender, TsbxSFTPServerAcceptEventParams *e); __property TsbxSFTPServerAcceptEvent OnAccept = { read=FOnAccept, write=FOnAccept };
Remarks
This event is fired by the component before a new incoming connection is accepted. RemoteAddress contains the IP address of the connecting client. Use the Accept parameter to either accept, or reject the connection.