2022-11-07 01:01:36 +01:00
|
|
|
#include <stdexcept>
|
2022-11-05 18:07:20 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
namespace data {
|
|
|
|
const int serverbound_msg = 1;
|
|
|
|
const int clientbound_msg = 2;
|
|
|
|
|
|
|
|
key_t getIpcKeyFromExeName(char *argv0);
|
|
|
|
|
2022-11-06 23:36:19 +01:00
|
|
|
struct RequestMapMsg {
|
2022-11-05 18:07:20 +01:00
|
|
|
long msgtype;
|
|
|
|
|
|
|
|
unsigned int datalen;
|
|
|
|
char data[128];
|
|
|
|
};
|
|
|
|
|
2022-11-06 23:36:19 +01:00
|
|
|
struct ResponseMapMsg {
|
2022-11-05 18:07:20 +01:00
|
|
|
long msgtype;
|
|
|
|
|
|
|
|
unsigned int datalen;
|
|
|
|
char data[128];
|
|
|
|
};
|
|
|
|
} // namespace data
|