How to save the packages received by a network interface or some port in a file and resend the packages received when needed?

2011-08-31 Thread king6c...@gmail.com
hi, This is a question not specific to Python,but its related somehow,and I believe I can get some help from your fellow:) I am doing my work on a server service program on Linux that processes the packages sent to the socket it listens.Their is already a old such service listening on the port

Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed?

2011-08-31 Thread king6c...@gmail.com
...@fenx.com On 8/31/2011 6:35 AM king6c...@gmail.com said... hi, This is a question not specific to Python,but its related somehow,and I believe I can get some help from your fellow:) I am doing my work on a server service program on Linux that processes the packages sent to the socket

something about performence

2011-06-20 Thread king6c...@gmail.com
Hi, I have two large files,each has more than 2 lines,and each line consists of two fields,one is the id and the other a value, the ids are sorted. for example: file1 (uin_a y) 1 1245 2 12333 3 324543 5 3464565 file2 (uin_b gift) 1 34545 3 6436466 4 35345646 5 463626