Discuss this help topic in SecureBlackbox Forum


TElSimpleFTPSServer     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event is fired before establishing a new connection.


    event TSBSimpleFTPSServerBeforeNewConnectionEvent OnBeforeNewConnection;
    delegate void TSBSimpleFTPSServerBeforeNewConnectionEvent(Object Sender, string RemoteIP, int RemotePort, ref bool Reject);

    Event OnBeforeNewConnection As TSBSimpleFTPSServerBeforeNewConnectionEvent
    Delegate Sub TSBSimpleFTPSServerBeforeNewConnectionEvent(ByVal Sender As Object, ByVal RemoteIP As String, ByVal RemotePort As Integer, ByRef Reject As Boolean)

    property OnBeforeNewConnection : TSBSimpleFTPSServerBeforeNewConnectionEvent;
    TSBSimpleFTPSServerBeforeNewConnectionEvent = procedure (Sender : TObject; const RemoteIP : string; RemotePort : integer; var Reject : boolean) of object;

    void get_OnBeforeNewConnection(TSBSimpleFTPSServerBeforeNewConnectionEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeNewConnection(TSBSimpleFTPSServerBeforeNewConnectionEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSimpleFTPSServerBeforeNewConnectionEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcRemoteIP, int32_t szRemoteIP, int32_t RemotePort, int8_t &Reject);

    TSBSimpleFTPSServerBeforeNewConnectionEvent|callable|NULL get_OnBeforeNewConnection()
    void set_OnBeforeNewConnection(TSBSimpleFTPSServerBeforeNewConnectionEvent|callable|NULL $Value)
    callable TSBSimpleFTPSServerBeforeNewConnectionEvent(TObject $Sender, string $RemoteIP, integer $RemotePort, bool &$Reject)

    TSBSimpleFTPSServerBeforeNewConnectionEvent getOnBeforeNewConnection();
    void setOnBeforeNewConnection(TSBSimpleFTPSServerBeforeNewConnectionEvent Value);
    TSBSimpleFTPSServerBeforeNewConnectionEvent.Callback OnBeforeNewConnection = new TSBSimpleFTPSServerBeforeNewConnectionEvent.Callback() {
        public void TSBSimpleFTPSServerBeforeNewConnectionEventCallback(TObject Sender, String RemoteIP, int RemotePort, TSBBoolean Reject) {


  • RemoteIP - IP address of the remote host (client) to connect to
  • RemotePort - port on the client-side to connect to
  • Reject - set this property to True to reject connection
  • pcRemoteIP - IP address of the remote host (client) to connect to
  • szRemoteIP - the length of pcRemoteIP.


    This event is fired by TElSimpleFTPSServer before it establishe a new connection. It allows to reject the connection to the undesired host/port using Reject parameter. When the connection is established, OnNewConnection event is fired.

See also:     OnNewConnection    

Discuss this help topic in SecureBlackbox Forum