hoe to build a patched socketmodule.c
jacopo mondi
mondi at cs.unibo.it
Fri Jul 10 08:10:04 EDT 2009
Roger Binns wrote:
> jacopo mondi wrote:
>> Hi all, I need to patch socketmodule.c (the _socket module) in order to
>> add support to an experimental socket family.
>
> You may find it considerably easier to use ctypes since that will avoid
> the need for any patching. You'll also be able to control how read and
> write are done (eg read vs recvfrom vs recvmsg vs readv). You can use
> os.fdopen to convert your raw file descriptor into a Python file object
> if appropriate.
>
> If you do use ctypes then you'll only need to distribute pure Python
> source code.
>
> Roger
Thanks a lot, I'll give it a try..
cheers
jacopo
More information about the Python-list
mailing list