lib60870.NET  2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
lib60870.CS104.ClientConnection Class Reference

Represents a client (master) connection More...

Inheritance diagram for lib60870.CS104.ClientConnection:
Collaboration diagram for lib60870.CS104.ClientConnection:

Public Member Functions

ApplicationLayerParameters GetApplicationLayerParameters ()
 Gets the connection parameters. More...
 
void SendASDU (ASDU asdu)
 Send a response ASDU over this connection More...
 
void SendACT_CON (ASDU asdu, bool negative)
 
void SendACT_TERM (ASDU asdu)
 
bool RemoteCertificateValidationCallback (object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslPolicyErrors)
 
void Close ()
 
void ASDUReadyToSend ()
 

Properties

IPEndPoint RemoteEndpoint [get]
 Gets the remote endpoint (client IP address and TCP port) More...
 
bool IsActive [get, set]
 Gets or sets a value indicating whether this connection is active. The active connection is the only connection that is answering application layer requests and sends cyclic, and spontaneous messages. More...
 

Detailed Description

Represents a client (master) connection

Member Function Documentation

◆ GetApplicationLayerParameters()

ApplicationLayerParameters lib60870.CS104.ClientConnection.GetApplicationLayerParameters ( )

Gets the connection parameters.

Returns
The connection parameters used by the server.

Implements lib60870.CS101.IMasterConnection.

◆ SendASDU()

void lib60870.CS104.ClientConnection.SendASDU ( ASDU  asdu)

Send a response ASDU over this connection

Exceptions
ConnectionExceptionThrows an exception if the connection is no longer active (e.g. because it has been closed by the other side).
Parameters
asduThe ASDU to send

Implements lib60870.CS101.IMasterConnection.

Property Documentation

◆ IsActive

bool lib60870.CS104.ClientConnection.IsActive
getset

Gets or sets a value indicating whether this connection is active. The active connection is the only connection that is answering application layer requests and sends cyclic, and spontaneous messages.

true if this instance is active; otherwise, false.

◆ RemoteEndpoint

IPEndPoint lib60870.CS104.ClientConnection.RemoteEndpoint
get

Gets the remote endpoint (client IP address and TCP port)

The remote IP endpoint


The documentation for this class was generated from the following file: