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

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

sql - MySQL Custom calculate views -