-
I am writing a gateway listening on multi ports for websocket connections, and a timer that must be called every loop. I don't want to use multi threads. Also I want to have a time manager that is not too precise which make a system call at the begining of every frame. The time manager also need to be called in the main loop. I just don't know how to listen on multi ports and how to execute my per-frame callback. Thanks very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you look at Loop.h there are addPostHandler etc. These run every new loop iteration. One app can listen to many ports, you simply call listen many times |
Beta Was this translation helpful? Give feedback.
If you look at Loop.h there are addPostHandler etc. These run every new loop iteration.
One app can listen to many ports, you simply call listen many times