Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37950
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <robertkday@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'socket': 0.05; 'addr': 0.09; 'cc:addr:python-list': 0.10; '"127.0.0.1"': 0.16; '1024': 0.16; 'it\xb4s': 0.16; 'sock': 0.16; 'socket.': 0.16; 'tcp,': 0.16; 'that\xb4s': 0.16; 'true:': 0.16; 'wrote:': 0.17; 'bytes': 0.17; 'jan': 0.18; 'appears': 0.18; 'sender:addr:gmail.com': 0.18; 'import': 0.21; 'cc:2**0': 0.23; 'example': 0.23; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; 'url:python': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'data,': 0.35; 'robert': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'programmers': 0.36; 'why': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:209.85.214': 0.39; 'url:mail': 0.40; 'most': 0.61; '30,': 0.62; 'here': 0.65; 'internet': 0.71; 'day': 0.73; '2013': 0.84; 'alberto': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=StfdEHPqWZCcAev4wVtTfy8BnHnADzxiFDZZgf5bqh8=; b=aO4Bo0hhQMc5YnZEJhXZPbiVd0X4wJ2AakIYvmUAoBHLtEpKgqKyow3uKULGAzyyP+ 4nNlTFo345+VFE6/JzfnXXVAI1RKTvSY8EcZsH7P1F3LwlGqzsny3O8IZSsHEPSMr8/z zOo+ONzzgmeBbScq0ImK1jc6POjwY+y2FalR5Hd7Ifc6jHUsHNTtNJ9RubIdU4mMdYFb HyLJKT+zti+i3cy7q2nfCsJm4t4eeK5yz1g9vvagqcB8YaMDG4GqjsJwfpMX6Il9d6WU 8lA6dfLj/JBsLU6/k6KGM40R0DxYom3KU2hU0oYJFpfttKCahHCnV8KmaYEbwoPCgQWo ihLQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.204.131.74 with SMTP id w10mr1486824bks.4.1359568891071; Wed, 30 Jan 2013 10:01:31 -0800 (PST) |
| Sender | robertkday@gmail.com |
| In-Reply-To | <0fc69471-a63b-4b4e-8e70-d0e3daa2fa74@ucimail4.uci.cu> |
| References | <-8366160877585761872@unknownmsgid> <0fc69471-a63b-4b4e-8e70-d0e3daa2fa74@ucimail4.uci.cu> |
| Date | Wed, 30 Jan 2013 18:01:30 +0000 |
| X-Google-Sender-Auth | blSdIg63I6AcjvLbMf-kuXf1oQI |
| Subject | Re: pyrudp |
| From | Rob Day <robert.day@merton.oxon.org> |
| To | Jorge Alberto Diaz Orozco <jaorozco@estudiantes.uci.cu> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list <python-list@python.org> |
| 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.1221.1359568898.2939.python-list@python.org> (permalink) |
| Lines | 35 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1359568898 news.xs4all.nl 6963 [2001:888:2000:d::a6]:50907 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37950 |
Show key headers only | View raw
Have you seen http://pyraknet.slowchop.com/? It appears to do a similar thing. On 30 January 2013 17:02, Jorge Alberto Diaz Orozco <jaorozco@estudiantes.uci.cu> wrote: > I´ve tried it but it´s not reliable. Datagrams can arive disorganised or just not arive. > Some programmers said I most use TCP, but I need to use UDP. > that´s why I need pyrudp, but I can not find it. > > On Jan 30, 2013, at 8:12 AM, Jorge Alberto Diaz Orozco > > What about the native socket call to SOCK_DGRAM? > > Here is a simple example to read messages of a udp socket. > > import socket > UDP_IP = "127.0.0.1" > UDP_PORT = 5005 > > sock = socket.socket(socket.AF_INET, # Internet > socket.SOCK_DGRAM) # UDP > sock.bind((UDP_IP, UDP_PORT)) > > while True: > data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes > print "received message:", data > -- > http://mail.python.org/mailman/listinfo/python-list -- Robert K. Day robert.day@merton.oxon.org
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pyrudp Rob Day <robert.day@merton.oxon.org> - 2013-01-30 18:01 +0000
csiph-web