Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed5.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; 'python.': 0.02; 'python,': 0.02; 'patterns': 0.04; 'subject:skip:c 10': 0.07; 'subject:How': 0.09; 'subject:set': 0.09; 'subject:using': 0.09; 'cc:addr:python- list': 0.10; 'emulator': 0.16; 'packets.': 0.16; 'subject: \n ': 0.16; 'subject:type': 0.16; 'wrote:': 0.17; 'written': 0.20; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'subject:?': 0.35; 'url:org': 0.36; 'test': 0.36; 'should': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply- to:no real name:2**0': 0.72; 'received:74.208.4.194': 0.84 Date: Mon, 20 Aug 2012 13:27:06 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Guillaume Comte Subject: Re: How to set the socket type and the protocol of a socket using create_connection? References: <4edc5ccb-9121-47b0-8ad4-2bf106735532@googlegroups.com> <50323dc7$0$6841$e4fe514c@news2.news.xs4all.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:bNk4Qla8dJ4RFWsRKiBXCLXofG1YI3vJpdkCcUIiXZ4 Sd9rcCVBRUIlQRLrjJ9bzz3Ks0uoeJM6NCzXMepQSS5zod/tmX b2/KMTg0XQ8YerYrQpfLYwgGdNnrMDbHfl8fZFabz43PB/ZQsO dDCn2X0aQZe5u5CnH33aJr5pojtS5DVXSh9sVrEDoyC8s1Pe4T AVXtmW9+XwKtUKV/VhgFhyknqe2agIHkY0usU9qWLDD5gLVIPO KmiTMFf2VciZsWPZqfWbc8miCzdNo1zVmC+g4Ii5Cog0s/zUoV leitTpOGv9UEzJFzja62VLcTGPvrvvoeEE7LpVQiCscDmOagA= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345483663 news.xs4all.nl 6967 [2001:888:2000:d::a6]:53359 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27512 On 08/20/2012 11:04 AM, Guillaume Comte wrote: > > Because I work on a network emulator and I want to check biterros patterns so I need to access the data of the packets. An dsince my test program is written in Python, it's easier to do it in Python. You should look up scapy. http://www.secdev.org/projects/scapy/ -- DaveA