Hi I'm wondering how to set up UDPClients to enable real-time 2 way communication between clients
I'm working on a simple network game in C#, it should be possible for a player to host a game and for others to connect to it
The host will send out the new game state every X millisecond and will simultaneously be receiving a continuous stream of user input from the other players
The other players will constantly be waiting for new input states and also be sending out user input to the host
What I'm wondering is how to achieve this.
Should I be using 2 different UDPClients, isn't there a potential thread conflict if they try to utilize the same resource at the same time? If not, do i need to set them up in some special way, else if I'm using 1 UDPClient, is there anything special i need to account for or is it thread safe and i can just fire away new messages while receiving?