예제 #1
0
 public EnIPRemoteDevice(IPEndPoint ep, int TcpTimeout = 100)
 {
     this.ep     = ep;
     this.epUdp  = new IPEndPoint(ep.Address, 2222);
     Tcpclient   = new EnIPTCPClientTransport(TcpTimeout);
     ProductName = "";
 }
예제 #2
0
 // The remote udp endpoint is given here, it's also the tcp one
 // This constuctor is used with the ListIdentity response buffer
 // No local endpoint given here, the TCP/IP stack should do the job
 // if more than one interface is present
 public EnIPRemoteDevice(IPEndPoint ep, int TcpTimeout, byte[] DataArray, ref int Offset)
 {
     this.ep    = ep;
     this.epUdp = new IPEndPoint(ep.Address, 2222);
     Tcpclient  = new EnIPTCPClientTransport(TcpTimeout);
     FromListIdentityResponse(DataArray, ref Offset);
 }