message types => enumerations
This commit is contained in:
parent
b30dbac932
commit
5a9c69191a
@ -145,10 +145,8 @@ end
|
|||||||
|
|
||||||
class IPC::Message
|
class IPC::Message
|
||||||
enum Type
|
enum Type
|
||||||
CLOSE
|
SERVER_CLOSE
|
||||||
CONNECTION
|
ERROR
|
||||||
SYN
|
|
||||||
ACK
|
|
||||||
DATA
|
DATA
|
||||||
end
|
end
|
||||||
|
|
||||||
|
11
core/msg.h
11
core/msg.h
@ -5,13 +5,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// FIXME, removed messages types: MSG_TYPE_CON, MSG_TYPE_CLOSE, MSG_TYPE_ACK
|
// the underlying communication must always correctly handled by the system
|
||||||
// this implies an underlying communication that is always correctly handled by the system
|
|
||||||
// (currently: unix sockets)
|
// (currently: unix sockets)
|
||||||
|
|
||||||
#define MSG_TYPE_SERVER_CLOSE 0
|
enum msg_types {
|
||||||
#define MSG_TYPE_ERR 1
|
MSG_TYPE_SERVER_CLOSE = 0
|
||||||
#define MSG_TYPE_DATA 2
|
, MSG_TYPE_ERR
|
||||||
|
, MSG_TYPE_DATA
|
||||||
|
} message_types;
|
||||||
|
|
||||||
struct ipc_message {
|
struct ipc_message {
|
||||||
char type;
|
char type;
|
||||||
|
Reference in New Issue
Block a user