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 |
externalPort |
Type: System.Int32 |
loopbackIP |
Type: System.Net.IPAddress |
loopbackPort |
Type: System.Int32 |
logger |
Type: 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.