2017-04-09 16:56:11 +00:00
|
|
|
/**************************
|
|
|
|
* Data-Structures *
|
|
|
|
***************************
|
|
|
|
* Designed & Developed by *
|
|
|
|
* Adrien Marquès *
|
|
|
|
* <xdrm-brackets> *
|
|
|
|
***************************
|
|
|
|
* doowap31@gmail.com *
|
|
|
|
**************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-04-07 18:25:53 +00:00
|
|
|
#define PLANE_LEN ( sizeof(char)*6+sizeof(int)*5 )
|
2017-04-06 11:36:51 +00:00
|
|
|
struct plane{
|
|
|
|
char code[6];
|
2017-04-08 16:20:17 +00:00
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int z;
|
|
|
|
int cap;
|
|
|
|
int spd;
|
2017-04-06 11:36:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
2017-04-09 14:06:31 +00:00
|
|
|
#define BINDHDR_LEN ( sizeof(char)*16+sizeof(unsigned short) )
|
|
|
|
#define BINDHEAD_CTL 0x01 // is command terminal (else: view terminal)
|
|
|
|
#define BINDHEAD_SCK 0x02 // ask for com socket
|
|
|
|
#define BINDHEAD_TCP 0x04 // ask TCP instead of UDP
|
2017-04-06 11:36:51 +00:00
|
|
|
|
|
|
|
struct bind_header{
|
2017-04-09 14:06:31 +00:00
|
|
|
char flags;
|
|
|
|
char addr[15];
|
2017-04-06 11:36:51 +00:00
|
|
|
unsigned short port;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|