Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSServer.OnBeforeNewConnection

TElSimpleFTPSServer     See also     


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


This event is fired before establishing a new connection.

Declaration

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

[VB.NET]
    Event OnBeforeNewConnection As TSBSimpleFTPSServerBeforeNewConnectionEvent
    Delegate Sub TSBSimpleFTPSServerBeforeNewConnectionEvent(ByVal Sender As Object, ByVal RemoteIP As String, ByVal RemotePort As Integer, ByRef Reject As Boolean)

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

[C++]
    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);

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

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

Parameters

  • 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.

Description

    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