socket question

Diez B. Roggisch deets at
Wed Sep 13 09:28:23 EDT 2006

hg wrote:

> Hi,
> I am not sure whether this is a python-related question.
> If I have device A than sends XX bytes to device B, and device B does a
> recv(XX) using the default timeout, what could make device B wake-up
> with less than XX bytes received ?

There exist higher abstractions for sockets in python for IPC - are you sure
you want to reinvent the wheel?

If you absolutely must: the select-call allows for specification of a
timeout. Use it with the socket file-descriptor.


More information about the Python-list mailing list