Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'socket': 0.04; 'test,': 0.04; 'option,': 0.07; 'subject:when': 0.07; 'interacting': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:file': 0.13; 'received:173.11': 0.16; 'standby': 0.16; 'subject: \n ': 0.16; 'subject:interface': 0.16; 'subject:port': 0.16; 'written': 0.16; 'linux': 0.17; 'source.': 0.18; 'header:In- Reply-To:1': 0.22; 'systems.': 0.23; 'server': 0.29; 'subject:some': 0.30; 'subject:?': 0.31; 'hi,': 0.32; 'source': 0.33; "can't": 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.35; 'subject:How': 0.35; 'question': 0.36; 'doing': 0.36; 'received:org': 0.38; 'listening': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'help': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'stop': 0.61; 'believe': 0.65; 'consumer': 0.85; 'service?': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed? Date: Wed, 31 Aug 2011 07:54:20 -0700 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 173-11-108-137-sfba.hfc.comcastbusiness.net User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314802488 news.xs4all.nl 2455 [2001:888:2000:d::a6]:36464 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12485 On 8/31/2011 6:35 AM king6cong@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 it listens.Their is already a > old such service listening on the port doing its job,and > I can't stop the old server service, and I need to get the packages sent > to the old server and send them to my new server service to make sure it > works well .How can I get the package and resent them to my new service? > Is there such a tool or is there some functionality that tools such as > tcpdump already provides? I recently set up a standby spare fax server on a network that I also needed to test, and was able to tee the source transmissions to both systems. That may be an option, particularly as it sounds like you've written a consumer of info and are not replying and interacting with the source. Emile