Implement network message manager #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Message manager
Message manager must allow communication with other processes through the tcp/ip connection via messages, encoded in JSON format.
JSON format
JSON messages will consist of (service, type, parameters). For example:
As JSON would look like this:
{"s":"db","t":"inc","p":{"var":"/player_id/headshots","inc":10}}
.Service is simply a name for a message target. For early versions this simply means either "echo" or the name of the database.
echo
serviceFor testing purposes, it would be nice to have a simple built-in service that simply sends back every message (with its source set to "echo") as-is. The only exception are messages of type "end", to which Avarice should not respond.
General workflow is as such
Edited issue, more info + clarifications.
After finishing code on the UE server's side, I have made some slight modifications to the issue. In particular, I've decided to add "echo" service that would simply repeat received messages back. This was useful for testing and I think it might also be useful for that later in the future, when changes to ue-side mods are made.