I need to send and recv at the same time.
Which option would be better:
- 1 thread handling send & recv with non-blocking socket
or
- 2 threads with one handling blocking recv() + one handling send()?
Or is there another solution?
I am expecting to have up to about 50 2-way connections. Which result in 50 thread in option #1, and 100 thread in option #2.