basic structure and client process chain done
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "communication.h"
|
||||
|
||||
int serialize_message(void *msg,long msg_size, unsigned char *out) {
|
||||
memcpy(out, msg, msg_size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int deserialize_message(unsigned char *in,long msg_size, void *msg) {
|
||||
memcpy(msg, in, msg_size);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef COMMUNICATION_H
|
||||
#define COMMUNICATION_H
|
||||
|
||||
#include <string.h>
|
||||
|
||||
int serialize_message(void *msg, long msg_size, unsigned char *out);
|
||||
int deserialize_message(unsigned char *in, long msg_size, void *msg);
|
||||
|
||||
#endif // !COMMUNICATION_H
|
||||
Reference in New Issue
Block a user