1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //---------------------------------------------------------------------------
- #ifndef ProtocolFH
- #define ProtocolFH
- //---------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- //---------------------------------------------------------------------------
- #define MAX_OLD_PACKET 1024
- #define VMS_NODE_ID 0x03
- #define VMS_TASK_ID 0x01
- typedef struct
- {
- BYTE MsgSeq; //범위(1,,255)
- BYTE MsgCL; // 0x11 : 데이터전송시작, 0x01 : 데이터전송계속, 0x00 : 데이터전송종료(Single Packet -> 0x00)
- BYTE ResFlag; // 0: 응답필요없음, 1: 수신결과요청
- BYTE NodeId;
- BYTE TaskId;
- BYTE TaskSeqNo;
- BYTE OpCodeType;
- BYTE OpCodeKind;
- WORD Length;
- } OLD_PROT_HEAD;
- class TOldProcess
- {
- public:
- TOldProcess();
- ~TOldProcess();
- int ID;
- AnsiString NAME;
- int PORT;
- };
- //---------------------------------------------------------------------------
- #endif
|