dnp3 (.NET API) 1.8.0-RC1
Loading...
Searching...
No Matches
dnp3.IClientConnectionHandler Interface Reference

Provides fine-grained control over how TCP and TLS clients connect to endpoints More...

Public Member Functions

TimeSpan Disconnected (string addr, string hostname)
 Notification that a previously successful connection failed. The task will sleep for the specified duration before attempting another connection More...
 
void Connecting (string addr, string hostname)
 Notification that a connection attempt is being made More...
 
void ConnectFailed (string addr, string hostname)
 Notification that connection operation failed More...
 
void Connected (string addr, string hostname)
 Notification that a connection attempt succeeded More...
 
void ResolutionFailed (string hostname)
 Notification that DNS resolution failed More...
 
void Next (NextEndpointAction action)
 Called to get the next endpoint to connect to or to sleep for a duration. Use the provided action object to specify the response. More...
 

Detailed Description

Provides fine-grained control over how TCP and TLS clients connect to endpoints

Member Function Documentation

◆ Connected()

void dnp3.IClientConnectionHandler.Connected ( string  addr,
string  hostname 
)

Notification that a connection attempt succeeded

Parameters
addrSocket address that connected successfully
hostnameOptional hostname (empty string if none)

◆ ConnectFailed()

void dnp3.IClientConnectionHandler.ConnectFailed ( string  addr,
string  hostname 
)

Notification that connection operation failed

Parameters
addrSocket address that failed to connect
hostnameOptional hostname (empty string if none)

◆ Connecting()

void dnp3.IClientConnectionHandler.Connecting ( string  addr,
string  hostname 
)

Notification that a connection attempt is being made

Parameters
addrSocket address being connected to
hostnameOptional hostname (empty string if none)

◆ Disconnected()

TimeSpan dnp3.IClientConnectionHandler.Disconnected ( string  addr,
string  hostname 
)

Notification that a previously successful connection failed. The task will sleep for the specified duration before attempting another connection

Parameters
addrSocket address that was disconnected
hostnameOptional hostname (empty string if none)
Returns
Amount of time to sleep before attempting to reconnect

◆ Next()

void dnp3.IClientConnectionHandler.Next ( NextEndpointAction  action)

Called to get the next endpoint to connect to or to sleep for a duration. Use the provided action object to specify the response.

Parameters
actionAction object to specify next endpoint or sleep duration

◆ ResolutionFailed()

void dnp3.IClientConnectionHandler.ResolutionFailed ( string  hostname)

Notification that DNS resolution failed

Parameters
hostnameHostname that failed to resolve

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