123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- #ifndef MESSAGE_H
- #define MESSAGE_H
- #ifndef uint8_t
- #define uint8_t unsigned char
- #endif
- #ifndef uint16_t
- #define uint16_t unsigned short
- #endif
- #ifndef uint32_t
- #define uint32_t unsigned long
- #endif
- #pragma pack( 1 )
- #define IP_ADDR_LEN 4
- #define IP6_ADDR_LEN 16
- #define COMMON_QUEUE 0
- #define MSG_PAYLOAD_SIZE 1024*2
- #define PIPE_NAME_LEN 64
- typedef struct
- {
- uint32_t Param;
- uint8_t Channel;
- int SrcQ ;
- uint8_t Cmd;
- uint8_t NetFnLUN;
- uint8_t Privilege;
- uint32_t SessionID;
- uint16_t ResTimeOut;
- uint16_t SessionType;
- uint8_t IPAddr [IP6_ADDR_LEN];
- uint16_t UDPPort;
- uint16_t Socket;
- uint32_t Size;
- uint8_t Data [MSG_PAYLOAD_SIZE];
- } MsgPkt_T;
- #pragma pack( )
- #endif
|