about summary refs log tree commit diff
path: root/masterserver/include/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'masterserver/include/network.h')
-rw-r--r--masterserver/include/network.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/masterserver/include/network.h b/masterserver/include/network.h
new file mode 100644
index 00000000..455fe681
--- /dev/null
+++ b/masterserver/include/network.h
@@ -0,0 +1,13 @@
+#ifndef _NETWORK_H
+#define _NETWORK_H
+
+#include <cstring>
+#include "common.h"
+
+char *WriteInt32(char *buffer, int32 value);
+char *WriteFixedString(char *buffer, const char *string, int strlen);
+
+char *ReadInt32(char *buffer, int32 *value);
+char *ReadFixedString(char *buffer, char *string, int strlen);
+
+#endif