Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Network packets processor advice

Reply
Thread Tools

Network packets processor advice

 
 
Krzysztof Retel
Guest
Posts: n/a
 
      02-09-2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when do I see this? XSLTProcessor processor XSLTProcessor processor brahatha Java 1 06-15-2007 10:52 AM
win xp pro sp2 64 bit is a multi processor or a uni processor =?Utf-8?B?dW1lc2g=?= Windows 64bit 4 08-01-2006 05:24 AM
AMD 64 X2 Processor: Any what to tell what program/process is assigned to processor? The Frozen Canuck Windows 64bit 1 01-16-2006 07:45 PM
Wireless Network Connected but no packets exchanged!! BTInternet Wireless Networking 1 12-13-2004 08:35 PM
Processor fried, should I upgrade or just buy a processor? Dim Computer Support 6 06-21-2004 08:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57