aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/load_net.cpp
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2020-05-18 13:41:40 -0400
committerAlexander <alex@cogarr.net>2020-05-18 13:41:40 -0400
commit355589a9100c7d08fdc4094ad32eb9852c88fcc4 (patch)
tree9e2d2ce6b736539907fc06fc3acc2c23daadafac /src/shared/lua_api/load_net.cpp
parent377ca5d31a35009913a795c8542659e4872d7c35 (diff)
downloadbrokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.tar.gz
brokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.tar.bz2
brokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.zip
various updates
Diffstat (limited to 'src/shared/lua_api/load_net.cpp')
-rw-r--r--src/shared/lua_api/load_net.cpp45
1 files changed, 36 insertions, 9 deletions
diff --git a/src/shared/lua_api/load_net.cpp b/src/shared/lua_api/load_net.cpp
index 3452aa2..b377cc5 100644
--- a/src/shared/lua_api/load_net.cpp
+++ b/src/shared/lua_api/load_net.cpp
@@ -69,6 +69,7 @@ extern "C" {
1 to 1 protocol.
@field PAIR 1
*/
+#define PAIR 1
/***
Many to many protocol.
@@ -76,36 +77,62 @@ When this socket sends messages, it does not receive a copy of the message
it just sent.
@field BUS 2
*/
+#define BUS 2
/***
Publish protocol.
The first half of the pub/sub protocol.
@field PUB 3
*/
+#define PUB 3
/***
Subscribe protocol
The second half of the pub/sub protocol.
@field SUB 4
*/
+#define SUB 4
/***
+Pull protocol.
+The first half of the push/pull protocol.
@field PULL 5
-@field PUSH 6
-@field REQ 7
-@field REP 8
-@field RESPOND 9
-@field SURVEY 10
*/
-#define PAIR 1
-#define BUS 2
-#define PUB 3
-#define SUB 4
#define PULL 5
+
+/***
+Push protocol.
+The second half of the push/pull protocol.
+@field PUSH 6
+*/
#define PUSH 6
+
+/***
+Request protocol.
+The first half of the request/reply protocol.
+@field REQ 7
+*/
#define REQ 7
+
+/***
+Reply protocol.
+The second half of the request/reply protocol.
+@field REP 8
+*/
#define REP 8
+
+/***
+Respond protocol.
+The second half of the survey/respond protocol.
+@field RESPOND 9
+*/
#define RESPOND 9
+
+/***
+Survey protocol.
+The first half of the survey/respond protocol.
+@field SURVEY 10
+*/
#define SURVEY 10
//Some defines for things that the library dosn't have