1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef YTDHCAMSHM_H
- #define YTDHCAMSHM_H
- #include <stdio.h>
- #include <stdbool.h>
- #include <sys/types.h>
- #include <sys/shm.h>
- #include <sys/ipc.h>
- #include <stdlib.h>
- #define SHM_PATH "/"
- #define SHM_PORT 8812
- typedef struct {
- unsigned char Enabled;
- unsigned long Idx;
- unsigned long ParentId;
- char CompanyCode[40];
- }CompanyInfo;//10240
- typedef struct {
- unsigned char Enabled;
- char CompanyCode[40];
- char CellPhone[20];
- unsigned long Idx;
- unsigned long long InfoChecked;
- }UserInfo;//102400
- typedef struct {
- unsigned char Enabled;
- unsigned char RegistStatus;
- unsigned char LoginStatus;
- unsigned char keepThread;
- char Device_Code[40];
- char Device_Name[200];
- char Device_Info[500];
- char Device_Type[100];
- char Company_Code[40];
- char LoginName[50];
- char Password[50];
- char Ip[50];
- unsigned short Port;
- unsigned long Push_Param[4];
- long LoginHandle;
- long SubscribeHandle;
- unsigned int lastCommTime;
- char UnUsed[256];
- }DeviceInfo;//102400
- typedef struct {
- CompanyInfo companyInfo[10240];
- UserInfo userInfo[102400];
- DeviceInfo deviceInfo[102400];
- }SysConfShm;
- #endif // YTDHCAMSHM_H
|