ioctl on socket
gagsl-py2 at yahoo.com.ar
Tue Jul 28 12:56:27 CEST 2009
En Tue, 28 Jul 2009 07:05:43 -0300, jacopo mondi <mondi at cs.unibo.it>
> Gabriel Genellina wrote:
>> En Mon, 27 Jul 2009 16:35:51 -0300, jacopo mondi <mondi at cs.unibo.it>
>>> Is there a reason why there is no ioctl interface for socket either
>>> for windows platform? It's technical issues or what else??
>> I don't completely understand your question. On Windows, you can use
>> socket.ioctl with sockets, and DeviceIoControl (from the pywin32
>> with other files. On Linux, you have fcntl.ioctl that works with any
>> of file.
> Ok, thanks a lot, my question was because I didn't know about
> fcntl.ioct, I thought that ioctl wrapping was implemented inside
> socketmodule.c as 'bind', 'connect', 'accept' etc. are, and I was
> disoriented because no documentation for socket usage on Linux nor the
> code have references about ioctl, except for windows.
I see; socket.ioctl should menction fcntl.ioctl; I'll submit a
More information about the Python-list