Network packets processor advice

Discussion in 'Python' started by Krzysztof Retel, Feb 9, 2009.

  1. 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
     
    Krzysztof Retel, Feb 9, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. efiedler
    Replies:
    1
    Views:
    2,060
    Tim Ward
    Oct 9, 2003
  2. sreehari
    Replies:
    7
    Views:
    358
  3. brahatha
    Replies:
    1
    Views:
    665
  4. Thomas Jollans
    Replies:
    0
    Views:
    383
    Thomas Jollans
    Aug 2, 2007
  5. Gary Herron
    Replies:
    1
    Views:
    450
    Azazello
    Aug 2, 2007
Loading...

Share This Page