The bot solves quizes and they progress faster in game. In result they don't pay for coins.
You have a good point and I agree about not reinventing the wheel. I'm obsessed with getting it done though feel like being hard headed.
So that's called asynchronous req/rep, I'm doing the same I guess giving each message that needs a response a unique id. But how do you relate them, what solution would be efficient? Is having a function sending the request and then looping through events received from server to find out which one has the request id and returning it, a good way?
your protocol will require a fixed-size header something like [1-byte message type]([8-byte identifier]) will do.
Обсуждают сегодня