AmsTcpIpRouter Constructor (AmsNetId, Int32, IPAddress, Int32, ILogger)

Initializes a new instance of the AmsTcpIpRouter class.

Namespace:  TwinCAT.Ads.TcpRouter
Assembly:  TwinCAT.Ads.TcpRouter (in TwinCAT.Ads.TcpRouter.dll) Version: 5.0.294+Branch.releases-5.0.Sha.90bb9a1b43b6095934fddca3e72bc0ea15da1c14

Syntax

C#

public AmsTcpIpRouter(
    AmsNetId local,
    int externalPort,
    IPAddress loopbackIP,
    int loopbackPort,
    ILogger logger
)

Parameters

local

Type: TwinCAT.Ads.AmsNetId
The (enforced) local NET Id.

externalPort

Type: System.Int32
The TCP/IP port the AmsTcpIpRouter is using.

loopbackIP

Type: System.Net.IPAddress
The loopback ip.

loopbackPort

Type: System.Int32
The loopback port.

logger

Type: ILogger
The logger.

Remarks

This constructor doesn't read the 'StaticRoutes.xml'. Instead, it is expected to force the local AmsNetId, the TCP/IP port and add the routes as Dynamic routes.

Reference

AmsTcpIpRouter Class

AmsTcpIpRouter Overload

TwinCAT.Ads.TcpRouter Namespace