You are not logged in.
Pages: 1
Can any python expert here please show me a little example of how to use unix domain sockets?
I've tried googling without much luck, all I find are TCP socket examples.
Thanks in advance.
Some PKGBUILDs: http://members.lycos.co.uk/sweiss3
Offline
I think it works just like a TCP one. Except to the socket function pass: AF_UNIX.
http://docs.python.org/lib/module-socket.html
so it uses the same syntax as a regular socket.
http://docs.python.org/lib/socket-example.html
Offline
Yeah I don't remember this information appearing in the docs a few weeks ago. Anyway, using a string instead of the (host, port) tuple worked.
However, when I finish using the socket, even if I do s.close(), the socket file is not removed. Am I doing something wrong?
Some PKGBUILDs: http://members.lycos.co.uk/sweiss3
Offline
Pages: 1