read Tcp stream

  • Thread starter Thread starter Droopy
  • Start date Start date
D

Droopy

Hi,

My application is receiving commands from Tcp sockets (about 1500/second).
There are local clients (I mean running on the same host) sending commands
on local Tcp sockets and my application running on remote hosts sending
commands on Tcp sockets.
I rely on Tcp buffering, reading and handling commands as fast as I can.
Should I create 1 (or 2) command queue(s) for buffering commands ?
What is the best way to handle this ?

Thanks in advance.
 
The only thing I could recommend is to defer the command handling to
another thread, in order to improve the throughput of your sockets.

Regards,
Tasos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top