Obsolete
/
libipc-old
Archived
3
0
Fork 0

message types => enumerations

more_to_read
Philippe PITTOLI 2018-10-09 03:09:45 +02:00
parent b30dbac932
commit 5a9c69191a
2 changed files with 8 additions and 9 deletions

View File

@ -145,10 +145,8 @@ end
class IPC::Message
enum Type
CLOSE
CONNECTION
SYN
ACK
SERVER_CLOSE
ERROR
DATA
end

View File

@ -5,13 +5,14 @@
#include <stdlib.h>
#include <string.h>
// FIXME, removed messages types: MSG_TYPE_CON, MSG_TYPE_CLOSE, MSG_TYPE_ACK
// this implies an underlying communication that is always correctly handled by the system
// the underlying communication must always correctly handled by the system
// (currently: unix sockets)
#define MSG_TYPE_SERVER_CLOSE 0
#define MSG_TYPE_ERR 1
#define MSG_TYPE_DATA 2
enum msg_types {
MSG_TYPE_SERVER_CLOSE = 0
, MSG_TYPE_ERR
, MSG_TYPE_DATA
} message_types;
struct ipc_message {
char type;