dnp3 (.NET API) 1.5.2
Loading...
Searching...
No Matches
dnp3.ConnectOptions Class Reference

Options that control how TCP connections are established More...

Public Member Functions

 ConnectOptions ()
 Initialize to the defaults More...
 
void SetTimeout (TimeSpan timeout)
 Set a timeout for the TCP connection that might be less than the default for the OS More...
 
void SetLocalEndpoint (string endpoint)
 Set the local address to which the socket is bound More...
 

Detailed Description

Options that control how TCP connections are established

Constructor & Destructor Documentation

◆ ConnectOptions()

dnp3.ConnectOptions.ConnectOptions ( )
inline

Initialize to the defaults

Member Function Documentation

◆ SetLocalEndpoint()

void dnp3.ConnectOptions.SetLocalEndpoint ( string  endpoint)
inline

Set the local address to which the socket is bound

If not specified, then any available adapter may be used with an OS assigned port.

Parameters
endpointString in 'address:port' format, where address can be IPv4 or IPv6. Using 0 for the port results in an OS assigned port
Exceptions
ParamException

◆ SetTimeout()

void dnp3.ConnectOptions.SetTimeout ( TimeSpan  timeout)
inline

Set a timeout for the TCP connection that might be less than the default for the OS

Parameters
timeoutTimeout value

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