portingtools/src/data.hpp

23 lines
338 B
C++
Raw Normal View History

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);
struct RequestMapMsg {
2022-11-05 18:07:20 +01:00
long msgtype;
unsigned int datalen;
char data[128];
};
struct ResponseMapMsg {
2022-11-05 18:07:20 +01:00
long msgtype;
unsigned int datalen;
char data[128];
};
} // namespace data