"Socket" files?

Paulo da Silva psXdaXsilva at esotericaX.ptX
Fri Aug 20 21:03:15 EDT 2004


Irmen de Jong wrote:
> Marcos Dione wrote:
> 
...

> 
> mkfifo creates fifo nodes, not "socket"-type files.
> I think Unix domain sockets are what the OP means...
> Which are created by using the AF_UNIX socket type:
> 
> from socket import *
> sock=socket(AF_UNIX,SOCK_STREAM)
> sock.bind("/tmp/mysocket")
...
This seems more logical. Besides there is also a "file" type
"fifo" where I was using mkfifo.

I'll give it a try. Unfortunately I began to upgrade my Gentoo
Linux and I am busy now.

Thank you.



More information about the Python-list mailing list