ProtocolF.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //---------------------------------------------------------------------------
  2. #ifndef ProtocolFH
  3. #define ProtocolFH
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <Classes.hpp>
  7. //---------------------------------------------------------------------------
  8. #define MAX_OLD_PACKET 1024
  9. #define VMS_NODE_ID 0x03
  10. #define VMS_TASK_ID 0x01
  11. typedef struct
  12. {
  13. BYTE MsgSeq; //범위(1,,255)
  14. BYTE MsgCL; // 0x11 : 데이터전송시작, 0x01 : 데이터전송계속, 0x00 : 데이터전송종료(Single Packet -> 0x00)
  15. BYTE ResFlag; // 0: 응답필요없음, 1: 수신결과요청
  16. BYTE NodeId;
  17. BYTE TaskId;
  18. BYTE TaskSeqNo;
  19. BYTE OpCodeType;
  20. BYTE OpCodeKind;
  21. WORD Length;
  22. } OLD_PROT_HEAD;
  23. class TOldProcess
  24. {
  25. public:
  26. TOldProcess();
  27. ~TOldProcess();
  28. int ID;
  29. AnsiString NAME;
  30. int PORT;
  31. };
  32. //---------------------------------------------------------------------------
  33. #endif