multithreading - Multiple TCP sockets in C -


does have guidance on how 1 should go opening many sockets, listening on them, , doing send/receive on each? i'm looking @ 3 high level options

  1. make thread per connection
  2. make single thread connections
  3. don't split connection handling out of main thread

i'm making mail server program , can't find best practices on subject. nor can find wisdom on pros/cons of each of above options.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -