I built a little client to communicate with the server and so far registering as a client works fine with "(init xy (version 7))" - the server registers a new client and starts sending various massages.
But when I try to send a simple "(move -10 10)" the server returns "error only_init_allowed_on_init_port". Can anyone explain me what this means? As I don't find anything about this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your client sent commands to the port number '6000', which is reserved for initial connection.
The port number of udp socket created by your client have to be overwritten.
You just need to set the port number sent from the server socket when your client receive the packet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I built a little client to communicate with the server and so far registering as a client works fine with "(init xy (version 7))" - the server registers a new client and starts sending various massages.
But when I try to send a simple "(move -10 10)" the server returns "error only_init_allowed_on_init_port". Can anyone explain me what this means? As I don't find anything about this error.
Hi,
Your client sent commands to the port number '6000', which is reserved for initial connection.
The port number of udp socket created by your client have to be overwritten.
You just need to set the port number sent from the server socket when your client receive the packet.
Thanks, that was the problem.