-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpWpCAACgkQmOOfHg372QQq0QCbB+rslUqK/AuUu0gA6N4m01Jo C8IAn3EkzFKCyt/K5WiuCnw3jzORBQh5 =JCv+ -----END PGP SIGNATURE----- -- http://mail.python.org/mailman/listinfo/python-list