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
- make thread per connection
- make single thread connections
- 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
Post a Comment