summaryrefslogtreecommitdiff
path: root/src/map/parse.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-06 20:57:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-07 00:35:13 +0300
commitd808fef992c2f37bd89fd8336f20cf587016e5a9 (patch)
tree2d390c3f544316b3713a9ba372aa3b0afa0667ce /src/map/parse.c
parentfeba0e8cd021ab0a0b469e79125dfc794442db17 (diff)
downloadevol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.gz
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.bz2
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.tar.xz
evol-hercules-d808fef992c2f37bd89fd8336f20cf587016e5a9.zip
Add packet for accept client version in map server.
Add struct for additional connection data. Add functions for get additional connection data. Impliment script function: getclientversion.
Diffstat (limited to 'src/map/parse.c')
-rw-r--r--src/map/parse.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c
new file mode 100644
index 0000000..6257a34
--- /dev/null
+++ b/src/map/parse.c
@@ -0,0 +1,26 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "../../../common/HPMi.h"
+#include "../../../common/malloc.h"
+#include "../../../common/mmo.h"
+#include "../../../common/socket.h"
+#include "../../../common/strlib.h"
+
+#include "map/parse.h"
+#include "map/session.h"
+#include "map/sessionext.h"
+
+void map_parse_version(int fd)
+{
+// struct map_session_data* sd = (struct map_session_data*)session[fd]->session_data;
+// if (!sd)
+// return;
+
+ struct SessionExt *data = session_get(fd);
+ data->clientVersion = RFIFOL(fd, 2);
+}