Interface.cs 613 B

1234567891011121314151617181920
  1. namespace TLVProtocal;
  2. public interface ITlvCommunicatorClient : IDisposable
  3. {
  4. bool Initialize(ITlvProvider provider, bool ConvertToBigEnd = false, int timeoutTime = 200);
  5. bool Open(string ipAddress, ushort port);
  6. bool SendNotify(TlvData tlvData);
  7. bool SendRequest(TlvData request, out TlvData reply);
  8. }
  9. public interface ITlvCommunicatorServer : IDisposable
  10. {
  11. bool Initialize(ITlvProvider provider, bool ConvertToBigEnd = false, int timeoutTime = 200);
  12. bool Open(string ipAddress, ushort port);
  13. bool Send(TlvData tlvData);
  14. bool Send<T>(byte tag, T data) where T : struct;
  15. }