serverdogshm.h 359 B

123456789101112131415161718192021222324
  1. #ifndef SERVERDOGSHM_H
  2. #define SERVERDOGSHM_H
  3. #include <stdbool.h>
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include <sys/ipc.h>
  8. #include <sys/shm.h>
  9. #define SHM_PATH "/"
  10. #define SHM_PORT 5111
  11. #pragma pack(1)
  12. typedef struct{
  13. uint data_feedtime;
  14. uint version_feedtime;
  15. }ServerDogShm;
  16. #pragma pack()
  17. #endif // SERVERDOGSHM_H