I am creating TCP dedicated server for my game. But I run into wall once more unfortunately.
How can I listen to Connections, while waiting for user input (commands) ? For example my code is going to run as it Should, and when I write in console callClient, it will invoke that function? because with simple while loop it is impossible (as while loop blocks). My server architecture is in this question: C# Tcp BeginAcceptTcpClient throws ObjectDisposedException Different thread is also out of question, I wouldn't be able to call the callClient function which would be in different thread