portingtools/src/data.hpp

23 lines
338 B
C++

#include <sys/types.h>
namespace data {
const int serverbound_msg = 1;
const int clientbound_msg = 2;
key_t getIpcKeyFromExeName(char *argv0);
struct RequestMapMsg {
long msgtype;
unsigned int datalen;
char data[128];
};
struct ResponseMapMsg {
long msgtype;
unsigned int datalen;
char data[128];
};
} // namespace data