Hey! I've been lurking for a while, but haven't really found any examples of Network Module packets and sockets that suit me.
I'm planning to make a 1v1 roguelike game (turn-based!)
What type of packets is preferable? There would be only two players and no other connections, but the player should be able to play with a friend without starting a server application externally. Just like Steam's co-op, or whatever. Preferably it should be as simple as possible: Player 1 starts the app and tells his username. This username is sent to a webserver and associated with IP address. Player 2 types in the username of Player 1, and connects to the Player 2. The game starts if both agree to it. Then data is being exchanged depending on the game state, etc.
How do you implement such thing? Can you point me in the right direction? Maybe a code snippet will do, thanks!