diff options
Diffstat (limited to 'src/shared/lua_api/load_net.cpp')
| -rw-r--r-- | src/shared/lua_api/load_net.cpp | 45 |
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 |
