Files
Modbus.Net/NA200H/ModBus.Net/TCPProtocalLinker.cs
parallelbgls@outlook.com ca030c8f59 2014-08-27 update 1
2014-08-27 15:57:25 +08:00

24 lines
616 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
namespace ModBus.Net
{
public abstract class TcpProtocalLinker : ProtocalLinker
{
/// <summary>
/// 连接对象
/// </summary>
protected TcpProtocalLinker()
{
//初始化连对象
_baseConnector = new TcpSocket(ConfigurationManager.IP, int.Parse(ConfigurationManager.Port), false);
}
protected TcpProtocalLinker(string ip)
{
_baseConnector = new TcpSocket(ip, int.Parse(ConfigurationManager.Port), false);
}
}
}