UOX
Posted: Tue Mar 01, 2022 6:04 pm
Ok, so as I continue to work on UOX (my c++17 project), I have decided on the following use of threads:
1 thread for the relays server - I have decided this is a low priority thing, so it is done sequentially, and in a single thread.
1 thread for the game server - This then uses a thread pool to server and work on items.
1 thread for the console - if I do a console. This is a tad different then uox3, but more on that later.
I finally decided to do a relay server and game server, because I finally decided that really is the correct way (imho). The advantage, is if I wanted to , I could do the relay server as a stand alone on some other ip. The downside, is one has to open two ports in their router if behind one.
1 thread for the relays server - I have decided this is a low priority thing, so it is done sequentially, and in a single thread.
1 thread for the game server - This then uses a thread pool to server and work on items.
1 thread for the console - if I do a console. This is a tad different then uox3, but more on that later.
I finally decided to do a relay server and game server, because I finally decided that really is the correct way (imho). The advantage, is if I wanted to , I could do the relay server as a stand alone on some other ip. The downside, is one has to open two ports in their router if behind one.