[issue1522400] irda socket support

Antoine Pitrou report at bugs.python.org
Sat Jul 10 17:46:40 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Here is a straight port of the patch to py3k, compiling under Linux and Windows. Several problems though:

1. the patch seems incomplete, in that manual decoding of return values is necessary (see posted example obex_test.py)

2. there seems to be no way to test it if you don't have an IRDA device (I don't have any)

3. the patch itself seems fragile: for example, it won't always put a terminating '\0' in sir_name; also, straight memcpy() of an int into a char[] buffer is wrong (endianness issues)

----------
Added file: http://bugs.python.org/file17928/irda-32.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1522400>
_______________________________________


More information about the Python-bugs-list mailing list