0
Answer

P2P BattleShip

Mohsin Javaid

Mohsin Javaid

12y
2.3k
1
Hello Everybody.

I am designing a P2P Battleship game using Window Forms.

I am implementing a chat server in the game as well. So far I have used two different ports for this purpose. One port for Game and other for Chatting. Everything is working fine except a little problem.

I am using one NetworkStream for listening and sending buttons to the other player. The problem is that how can I stop Player 1 from reading the contents of the stream when he is sending the information to Player 2 and vice versa?