I made game using C++ and SDL libraries, now i want to make it to be an online game.
But don't know how. I have source codes of Server and Client from MSDN using winsock i tried to put client code into the code of game, it works, but there is a lot of things i don't know to do. The server i shut downing when he receive first message from client. To avoid that i put while loop, so when he shutdown, he starts up again. And the for the client, is the same thing, he needs to start up and shutdown whenever i click. I don't know how to make a server that will be always turn on, receive messages (numbers) from 4 clients (not at same time, first from client 1, then client 2, then client 3, then client 4 and then from client 1....)
and send received messages (numbers, which sends one client) to all client in same time.
Maybe this is not a right question, but can somebody make online part (server and put right client code into the code of game), i will send pm with all codes... ?? :/