UDP reading on multiple sockets

Grant Edwards grante at visi.com
Tue May 19 06:47:04 EDT 2009


On 2009-05-18, thomas.vogel at likeabird.de <thomas.vogel at likeabird.de> wrote:
> On 17 Mai, 04:22, Grant Edwards <gra... at visi.com> wrote:
>> On 2009-05-17, Thomas Vogel <thomas.vo... at likeabird.de> wrote:
>>
>> > I'm currently have the problem that I try to read UDP messages from
>> > multiple sockets in parallel. So let's say I get UDP packets from the
>> > same IP on the ports 2000, 2001, 2002,...
>>
>> Is there any reason you can't do it the easy way by using
>> select?
>>
>> http://docs.python.org/library/select.html
>
> The only honest answer would be that I'm totaly unfamiliar
> with select and also the documentation I found wasn't able to
> clear the picture. So are there examples of using select
> together with sockets available?

http://www.google.com/search?q=python+select+example

http://www.amk.ca/python/howto/sockets/
http://code.activestate.com/recipes/531824/
http://mail.python.org/pipermail/python-list/2001-February/071302.html
http://squirl.nightmare.com/medusa/async_sockets.html

-- 
Grant




More information about the Python-list mailing list