12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __COLONY_H_
- #define __COLONY_H_
- #define COLONY_SER_SOCKET 2
- #define COLONY_SER_PORT 25060
- extern unsigned char colonyCtl;
- extern unsigned char CCID[21];
- typedef struct{
- unsigned char colonyCtl:1;//打开域名集群连接
- unsigned char domainGetOk:1;//域名解析成功
- unsigned char targetConnectOk:1;//targetIp连接成功
- char targetIp[16];//域名解析出来的目标IP
- char targetTryTime;//连接targetIp的次数
- char targetDataSendTime;//发起数据包次数
- char pocIp[16];
- char gpsIp[16];
- unsigned char domainSendTick;
- }__attribute__ ((packed)) COLONY_TYPEDEF;
- void ConolyInit(void);
- short ModemGetCCID(void);
- void Colony_RecvHandle(char *data, unsigned short len);
- void ColonyTick(void);
- void ColonyDomainGet(char *pMsg);
- void ColonyParaReset(void);
- void ColonyFeature(char status);
- void ColonyTcpStatus(STATUE ipStatus);
- char *getICCID(void);
- void GetDomainIp(char *pMsg,char type);
- void AtQuery();
- #endif
|