2014-08-01 update 1

This commit is contained in:
parallelbgls
2014-08-01 10:51:41 +08:00
parent 7395c43572
commit f2fcc3ca49
6 changed files with 822 additions and 912 deletions

View File

@@ -1,9 +1,27 @@
namespace ModBus.Net
using System.Reflection;
namespace ModBus.Net
{
public abstract class ProtocalLinker
{
public abstract byte[] SendReceive(byte[] content);
public abstract bool SendOnly(byte[] content);
public byte[] BytesExtend(byte[] content)
{
ProtocalLinkerBytesExtend bytesExtend =
Assembly.Load("ModBus.Net").CreateInstance(this.GetType().FullName + "BytesExtend") as
ProtocalLinkerBytesExtend;
return bytesExtend.BytesExtend(content);
}
public byte[] BytesDecact(byte[] content)
{
ProtocalLinkerBytesExtend bytesExtend =
Assembly.Load("ModBus.Net").CreateInstance(this.GetType().FullName + "BytesExtend") as
ProtocalLinkerBytesExtend;
return bytesExtend.BytesDecact(content);
}
}
}