Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44373
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'receives': 0.04; 'cpython': 0.05; 'http': 0.09; 'http,': 0.09; 'protocols,': 0.09; 'protocols.': 0.09; 'python': 0.11; 'windows': 0.15; 'bytes;': 0.16; 'distinct': 0.16; 'separated': 0.16; 'simplest': 0.16; 'sockets': 0.16; 'tcp': 0.16; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'stack': 0.19; 'header:User-Agent:1': 0.23; 'bytes': 0.24; '(or': 0.24; 'possibly': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'css': 0.30; 'libraries': 0.31; 'everyone': 0.33; 'raw': 0.33; 'problem': 0.35; 'etc': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'application': 0.37; 'implement': 0.38; 'represent': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'tell': 0.60; 'equipment': 0.61; "you'll": 0.62; 'networking': 0.64; 'different': 0.65; 'fact,': 0.69; '3.3.1': 0.84; '9.1': 0.84; 'freebsd': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=3UjSQuPQ2FBj/nHlFUVQfKOZqdPxerAIIU9u18pI+z8=; b=QZAffdmzRceMpYLBD8f45ciMgpwRsGBHjkw+1Rq+SGpnvU4XMT0rvI0n1oRPS186pS pEEgvb2Q0sPsUIODP2U6jjDxslItDdiaKmb2+ixbPlADSHUF7PcTl5tiMrjY+RNv5SZT hUSPASfYIJdgLAM3/jZOBOI+RD6Yb4ydPnZ6wjKv+6/h+irqVMs1mzE0sC9XFmHDFkni NNkJeLKTBCY1ADQ/aV7f4YhmBO3l2tbZYvM5zMBuFPnOY0+t01XKhWlgyG3bBBpWG1/+ f7/WGVeKHPUSt02YSynxzy17xGwoBC090z6TDGAYe6U83rBbZQi295QM0sc7u8nWHKoP T1mA== |
| X-Received | by 10.42.123.66 with SMTP id q2mr17428036icr.12.1366934704366; Thu, 25 Apr 2013 17:05:04 -0700 (PDT) |
| Date | Thu, 25 Apr 2013 19:05:09 -0500 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: TCP reassembly |
| References | <ee05b72e-86dc-4744-a733-64a804a41af8@googlegroups.com> |
| In-Reply-To | <ee05b72e-86dc-4744-a733-64a804a41af8@googlegroups.com> |
| X-Enigmail-Version | 1.5.1 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1073.1366934711.3114.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1366934711 news.xs4all.nl 15972 [2001:888:2000:d::a6]:39883 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:44373 |
Show key headers only | View raw
On 2013.04.25 18:35, Hasil Sharma wrote: > Hi everyone , > How to reassemble the TCP data packets into objects viz. html , css , js image files etc . I have no idea how to implement it using python , please help ? TCP packets don't need to be reassembled. If your application receives TCP packets out of order, there is a problem with your networking equipment (or possibly the TCP stack in your OS). I suspect that you actually mean that you want distinct bytes objects that represent specific data. Sockets will give you a stream of bytes; how the data is separated is defined by the protocol. If you are dealing with HTTP, it is much better to use an HTTP client library than raw sockets. In fact, there are many libraries available for many different protocols, which are a better choice than dealing with sockets directly for all but the simplest protocols. You'll get a better answer if you tell us what the problem is and what you are trying to accomplish. -- CPython 3.3.1 | Windows NT 6.2.9200 / FreeBSD 9.1
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
TCP reassembly Hasil Sharma <hasilsharma7@gmail.com> - 2013-04-25 16:35 -0700 Re: TCP reassembly Andrew Berg <bahamutzero8825@gmail.com> - 2013-04-25 19:05 -0500 Re: TCP reassembly Dave Angel <davea@davea.name> - 2013-04-25 23:35 -0400
csiph-web