Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: pyrudp

Reply
Thread Tools

Re: pyrudp

 
 
Rob Day
Guest
Posts: n/a
 
      01-30-2013
Have you seen http://pyraknet.slowchop.com/? It appears to do a similar thing.

On 30 January 2013 17:02, Jorge Alberto Diaz Orozco
<(E-Mail Removed)> wrote:
> I“ve tried it but it“s not reliable. Datagrams can arive disorganisedor 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
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: pyrudp Jorge Alberto Diaz Orozco Python 1 01-30-2013 09:01 PM
Re: pyrudp Michael Torrie Python 0 01-30-2013 05:16 PM
Re: pyrudp Jorge Alberto Diaz Orozco Python 0 01-30-2013 05:02 PM
Re: pyrudp Rodrick Brown Python 0 01-30-2013 01:45 PM
pyrudp Jorge Alberto Diaz Orozco Python 0 01-30-2013 07:13 AM



Advertisments