You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
719 B
C#
31 lines
719 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sln.Imm.Daemon.Opc
|
|
{
|
|
public abstract class OpcDeviceFactory
|
|
{
|
|
/// <summary>
|
|
/// 是否连接
|
|
/// </summary>
|
|
public abstract bool IsConnected { get; set; }
|
|
|
|
/// <summary>
|
|
/// 建立连接
|
|
/// </summary>
|
|
/// <param name="ip"></param>
|
|
/// <param name="port"></param>
|
|
/// <returns></returns>
|
|
public abstract bool Connect(string ip, int port);
|
|
|
|
/// <summary>
|
|
/// 断开连接
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public abstract bool DisConnect();
|
|
}
|
|
}
|