Hello,
For education purposes I am writing a C++ Habbo Server from scratch by using the sys/socket library for sockets and mySQL for database.
I already got a socket running and the way of returning messages (thanks to github/Icarus-cpp).
However, now I want to handle the incoming packets.
The way I am wanting to do is creating a map, inserting in the map the header + event, and getting the elements from it by using "count".
I already got a demo of that working, but now the problem is how I can get the header packets from the incoming messages, without using boosts for example.
So, in main.cpp I can handle a header by using clientmessage.checkHeader(sizeof(buf));
Code is here:
Thanks.
For education purposes I am writing a C++ Habbo Server from scratch by using the sys/socket library for sockets and mySQL for database.
I already got a socket running and the way of returning messages (thanks to github/Icarus-cpp).
However, now I want to handle the incoming packets.
The way I am wanting to do is creating a map, inserting in the map the header + event, and getting the elements from it by using "count".
I already got a demo of that working, but now the problem is how I can get the header packets from the incoming messages, without using boosts for example.
So, in main.cpp I can handle a header by using clientmessage.checkHeader(sizeof(buf));
Code is here:
You must be registered to see links
Thanks.