Hi, I'm trying to create a game query program, which sends a query to the server through UDP, and the server sends a response back, with some info about the server.

The response of the server is stored in char * data; But now my question, how do I convert to bytes (actually 2 char's) to a short value?