c linux multithreading networking -


i have network application on gateway. receives , sends packets. of them, gateway acts router, in cases, can receive packets too.

should have:

  • only 1 main thread
  • a main thread + dispatch thread in charge of giving correct flow handler
  • as many threads there flows
  • something else.

?

doing multithreading correctly no simple matter, in many cases select , friends based solution whole lot easier create.


Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -