Could you make a tutorial which shows a UDP server client setup in which the server waits for clients to connect to it and when clients connect to the server they can send requests from a menu like
"Enter 1-3 for options"
"1) server will send you hello"
"2) server will send you goodbye"
"3) server will send you 1234"
"prompt user input:"
And the server would send back either hello, goodbye, or 1234 according to the client's sent input.
if you could do this for me that would be great because it will help me understand what you had in mine when trying to communicate between the client and server sending messages back and forth between them.
I hope to be able to take this tutorial and then change it up a bit so that I will eventually be able to have multiple clients connect to the server and then be able to send to the server up down left right commands so that the server can keep track of sprites on a 2d map, then send the coordinates of all the connect clients back to each client so that everyone can see where everyone is on the map. (hopefully that makes sense.
I really just need to know how to send data to the server and be able to reply to a client's sent data appropriately and at the same time continuously broadcast everyone's coordinates on a 2d map.
Thank you in advance