-
I saw the world server forwarding messages in the log. Does the world server message exist in ZMQ? Which service started ZMQ? What is the port on the ZMQ server and how is it linked? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
What mode do they use? Publish subscription? |
Beta Was this translation helpful? Give feedback.
-
We use ROUTER/DEALER sockets between our different processes. The port is defined in the settings under You can find the central hub of our ZMQ messaging here: https://github.com/LandSandBoat/server/blob/base/src/world/message_server.cpp#L360 and for the other processes: |
Beta Was this translation helpful? Give feedback.
-
Do ZMQ have a client? I would like to see what the message looks like. So that I can use other programming languages to process some data. @zach2good |
Beta Was this translation helpful? Give feedback.
We use ROUTER/DEALER sockets between our different processes.
xi_world
holds the ROUTER and the other processes each have aDEALER
.The port is defined in the settings under
network.ZMQ_PORT
. All the processes read from and use this setting, so you can change this if you want .There's little need to unless you have other unrelated ZMQ things happening on that port.You can find the central hub of our ZMQ messaging here: https://github.com/LandSandBoat/server/blob/base/src/world/message_server.cpp#L360
and for the other processes:
https://github.com/LandSandBoat/server/blob/base/src/map/message.cpp#L904