Can Tcp Server receive more messages at the same time?

Viewed 52

In a Tcp connection, can one Tcp Server receive two or more tcp messages at the same time from some different clients?

I have to make a small tool to manage a lot of communication from somee devices and a lot of frame exchange at the same time.

Could you give me an example?

Thanks

1 Answers

Yes, as long as:

  1. they are on different TCP connections, and
  2. your socket reading code allows it - specifically, it won't work if you use a single reader based on Socket.Select, and
  3. you don't add any mutex/lock/etc that prevents full concurrency over the reading
Related