UDP packets to MySQL database? C++ Winsock

Discussion in 'MySQL' started by pictureboarduk, Nov 21, 2008.

  1. #1
    Hi everyone,

    I'm coding a C++ game and it's sending high scores with Winsock via the UDP protocol to our server.

    I need to extract the scores the players achieve and place them into a LAMP server/MySQL database, but never having done this before, was looking for the best way to do it.

    Should it make the issue easier, I can send the packets via TCP on port 80.

    The score are uploaded in an integer sting:

    userID.gameID.score

    each of the 3 segments is of variable sizes.

    What would be the easiest way to go about this?

    Thanks!
     
    pictureboarduk, Nov 21, 2008 IP