Accept Event
This event is fired when new incoming connection is accepted.
Syntax
class SFTPServerAcceptEventParams { public: const QString &RemoteAddress(); int RemotePort(); bool Accept(); void SetAccept(bool bAccept); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Accept(SFTPServerAcceptEventParams *e);
// Or, subclass SFTPServer and override this emitter function. virtual int FireAccept(SFTPServerAcceptEventParams *e) {...}
Remarks
This event is fired by the class 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.