Network packets processor advice

  • Thread starter Krzysztof Retel
  • Start date
K

Krzysztof Retel

Hi,

I am wrting a network packet processor. The processor listens on a
specific port for incomming UDP or TCP packets. When the packet
arrives it has to parse it, store in DB and if this succeed it has to
acknowledge the packet to the client. Now the problem is that I want
to have a control over possible failures of the system. For instance,
if the DB is gone, the processor should stop working and restart when
DB is back to live.

So the questions are:
1. Which approach is the best for building such software? For instance
using threads?
2. I can use the 'monit' tool for monitorig processes. However, not
sure yet how to start a python script with a specific process id. Is
it possible at all?
3. Any other suggestions?

Cheers,
K
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top