2017-04-06 11:36:51 +00:00
|
|
|
#ifndef _DATA_H_
|
|
|
|
#define _DATA_H_
|
|
|
|
|
|
|
|
#define TERMREQ_FBK 0x01
|
|
|
|
#define TERMREQ_CAP 0x02
|
|
|
|
#define TERMREQ_SPD 0x04
|
|
|
|
#define TERMREQ_ALT 0x08
|
|
|
|
|
|
|
|
struct plane{
|
|
|
|
char code[6];
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int z;
|
|
|
|
int cap;
|
|
|
|
int speed;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct term_req{
|
|
|
|
char flags;
|
|
|
|
struct plane udpate;
|
|
|
|
};
|
|
|
|
|
2017-04-07 16:14:21 +00:00
|
|
|
struct term_res{
|
|
|
|
char flags;
|
|
|
|
char n;
|
|
|
|
struct plane* data;
|
|
|
|
};
|
|
|
|
|
2017-04-06 11:36:51 +00:00
|
|
|
|
|
|
|
#define BINDHEAD_CTL 0x01
|
|
|
|
#define BINDHEAD_PRT 0x02
|
|
|
|
|
2017-04-07 16:14:21 +00:00
|
|
|
#define BINDHDR_LEN sizeof(char)+sizeof(unsigned short)
|
2017-04-06 11:36:51 +00:00
|
|
|
struct bind_header{
|
|
|
|
char flags;
|
|
|
|
unsigned short port;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|