AmsTcpIpRouter Constructor (AmsNetId, Int32, IPAddress, Int32, .IPAddress., ILogger)
Initializes a new instance of the AmsTcpIpRouter class.
Namespace: TwinCAT.Ads.TcpRouter
Assembly: TwinCAT.Ads.TcpRouter (in
TwinCAT.Ads.TcpRouter.dll) Version: 6.0.328+39e3229
Syntax
C#
public AmsTcpIpRouter(
AmsNetId local,
int externalPort,
IPAddress? loopbackIP,
int loopbackPort,
IPAddress[]? loopbackCommunicationIPs,
ILogger? logger
)
Parameters
local |
Type: TwinCAT.Ads.AmsNetId |
externalPort |
Type: System.Int32 |
loopbackIP |
Type: System.Net.IPAddress |
loopbackPort |
Type: System.Int32 |
loopbackCommunicationIPs |
Type: .System.Net.IPAddress. |
logger |
Type: Microsoft.Extensions.Logging.ILogger |
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.