ConnectionStatus Event

Fired to indicate changes in connection state.

Syntax

public event OnConnectionStatusHandler OnConnectionStatus;

public delegate void OnConnectionStatusHandler(object sender, RudpclientConnectionStatusEventArgs e);

public class RudpclientConnectionStatusEventArgs : EventArgs {
  public string ConnectionEvent { get; }
  public int StatusCode { get; }
  public string Description { get; }
}
Public Event OnConnectionStatus As OnConnectionStatusHandler

Public Delegate Sub OnConnectionStatusHandler(sender As Object, e As RudpclientConnectionStatusEventArgs)

Public Class RudpclientConnectionStatusEventArgs Inherits EventArgs
  Public ReadOnly Property ConnectionEvent As String
  Public ReadOnly Property StatusCode As Integer
  Public ReadOnly Property Description As String
End Class

Remarks

The ConnectionStatus event is fired when the connection state changes: completion of a connection, etc.

The ConnectionEvent parameter indicates the type of connection event. Values may include:

Remote host connection complete.
Remote host disconnected.

StatusCode has the error code. If there is no error the value will be 0. Description contains a description of this code.

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