chadthecoder / graphicsProject

Graphics project using SDL2, ASIO OPENGL, GLEW, WebGL, miniaudio, stb (Only stb_image.h right now), assimp (implementing now), PerlinNoise from Reputeless, and GLM. Following multiple tutorials to learn how to code graphics in C++.
0 stars 3 forks source link

Figure out networking. #12

Closed chadthecoder closed 11 months ago

chadthecoder commented 11 months ago

Add networking to asio folder. Purpose is to learn and eventually figure out how to create a game server for multiplayer.

Possibly helpful MIT licensed library?

https://github.com/DarkWanderer/NetworkLib

Edit:

Solution?:

Use TCP for connection status now (possible chat later) and UDP for updating graphics later? Give info to server and server sends correct info back with udp. Use standalone asio.

Convert client to async as well? Convert server to call send even if doesn't always receive?

https://gamedev.stackexchange.com/questions/204122/input-processing-on-the-server-side

https://gamedev.stackexchange.com/questions/97699/game-networking-client-request-or-server-sending

https://en.sfml-dev.org/forums/index.php?topic=9327.0

https://stackoverflow.com/questions/19887537/how-to-detect-when-a-boost-tcp-socket-disconnects

https://gamedev.stackexchange.com/questions/20425/game-logic-on-the-server-good-or-bad

chadthecoder commented 11 months ago

Works for now. Moving info to wiki.