24 lines
616 B
C#
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);
|
|
}
|
|
}
|
|
} |