Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Re: pyrudp

Rodrick Brown
Posts: n/a
On Jan 30, 2013, at 8:12 AM, Jorge Alberto Diaz Orozco
<(E-Mail Removed)> wrote:

> can someone give me a link to download pyrudp.
> I tried here but didn“t worked.
> if someone can give me another idea it will be great to.
> I“m traying to make a reliable udp connection

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 = ""
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

> help will be really appreciated
> --

Reply With Quote

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 Rob Day Python 0 01-30-2013 06: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
pyrudp Jorge Alberto Diaz Orozco Python 0 01-30-2013 07:13 AM