SecureBlackbox 2020 .NET Edition

Questions / Feedback?

Accept Event

This event is fired when new incoming connection is accepted.

Syntax

public event OnAcceptHandler OnAccept;

public delegate void OnAcceptHandler(object sender, SftpserverAcceptEventArgs e);

public class SftpserverAcceptEventArgs : EventArgs {
  public string RemoteAddress { get; }
  public int RemotePort { get; }
  public bool Accept { get; set; }
}
Public Event OnAccept As OnAcceptHandler

Public Delegate Sub OnAcceptHandler(sender As Object, e As SftpserverAcceptEventArgs)

Public Class SftpserverAcceptEventArgs Inherits EventArgs
  Public ReadOnly Property RemoteAddress As String
  Public ReadOnly Property RemotePort As Integer
  Public Property Accept As Boolean
End Class

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]