Help C++ - Reading and writing packets
#8
(10-01-2019, 06:15 AM)Alpha Mode Wrote:
(10-01-2019, 05:19 AM)xoft Wrote: As for the API / library - networking IS HARD, there's no shame in using a library that already shields you from the nasty low-level problems you'd encounter otherwise. For example, the select() API you might be tempted to use works alright on Windows, but is hopelessly broken on Linux / Unix; the function signatures are the same on both platforms, but each platform has its quirks that make writing multiplatform code a nightmare. Threading, which I advised as the minimal helping API, is heavy - two threads per client is unacceptable for high-throughput / high-availability servers.

People have been saying good stuff about boost::asio, it's modern, it's c++; if I were to start a new server project, I'd seriously consider learning it.
I mean I am thinking about using a API at this point but a also want to do the low level work to learn more

The last thing I want to know is how does the apend function work
and I also heard people saying you have to send the PacketID and others for sending packets
I am just trying to ping the server list for the client to show the MOTD and online players

Also my Discord: Alpha Mode#0001
Reply
Thanks given by: Francisdaumb


Messages In This Thread



Users browsing this thread: 1 Guest(s)