What is the threading solution for socket programming for Client and Server programming?

This is a C# project with two executables.

What is the threading solution for socket programming for Client and Server programming?

I have written two programs that serve as a client and a server for web socket programs to pass data between each other. But it seems that after one sends, it waits until it gets a response. This tells me that the project needs to be multi threaded. I believe each program should have two threads each: one for sending and one for receiving messages. There must be a common way of doing this since I imagine it is done all the time and the best way is common knowledge. Is there?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.