|
@@ -1,4 +1,4 @@
|
1
|
|
-PROTO_ROOT = "sprotoparse."
|
|
1
|
+PROTO_ROOT = ""
|
2
|
2
|
|
3
|
3
|
package.loaded[PROTO_ROOT .. "struct_client"] = nil
|
4
|
4
|
package.loaded[PROTO_ROOT .. "socket_client"] = nil
|
|
@@ -8,7 +8,7 @@ local struct_client = require(PROTO_ROOT .. "struct_client")
|
8
|
8
|
local socket_client = require(PROTO_ROOT .. "socket_client")
|
9
|
9
|
local http_client = require(PROTO_ROOT .. "http_client")
|
10
|
10
|
|
11
|
|
-local sprotoparser = require("3rd.sproto.sproto")
|
|
11
|
+local sprotoparser = require(PROTO_ROOT .. "sprotoparser")
|
12
|
12
|
|
13
|
13
|
local proto = {}
|
14
|
14
|
|
|
@@ -20,10 +20,10 @@ proto.socket = {
|
20
|
20
|
proto.c2s = sprotoparser.parse(proto.socket.c2s)
|
21
|
21
|
proto.s2c = sprotoparser.parse(proto.socket.s2c)
|
22
|
22
|
|
23
|
|
-proto.host_c2s = proto.c2s:host("package")
|
24
|
|
-proto.host_s2c = proto.s2c:host("package")
|
|
23
|
+-- proto.host_c2s = proto.c2s:host("package")
|
|
24
|
+-- proto.host_s2c = proto.s2c:host("package")
|
25
|
25
|
|
26
|
|
-proto.fc2s_Request = proto.host_s2c:attach(proto.c2s)
|
|
26
|
+-- proto.fc2s_Request = proto.host_s2c:attach(proto.c2s)
|
27
|
27
|
|
28
|
28
|
-- http
|
29
|
29
|
proto.http = {
|
|
@@ -33,8 +33,8 @@ proto.http = {
|
33
|
33
|
proto.http_c2s = sprotoparser.parse(proto.http.c2s)
|
34
|
34
|
proto.http_s2c = sprotoparser.parse(proto.http.s2c)
|
35
|
35
|
|
36
|
|
-proto.httpHost_c2s = proto.http_c2s:host("package")
|
37
|
|
-proto.httpHost_s2c = proto.http_s2c:host("package")
|
|
36
|
+-- proto.httpHost_c2s = proto.http_c2s:host("package")
|
|
37
|
+-- proto.httpHost_s2c = proto.http_s2c:host("package")
|
38
|
38
|
|
39
|
|
-proto.httpc2s_Request = proto.httpHost_s2c:attach(proto.http_c2s)
|
|
39
|
+-- proto.httpc2s_Request = proto.httpHost_s2c:attach(proto.http_c2s)
|
40
|
40
|
return proto
|