2014-08-01 update 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user