[Tutor] open a socket from a named file on linux
dm
linux236r4 at hotpop.com
Wed Mar 2 11:48:19 CET 2005
On Sun, 2005-02-27 at 17:18 -0600, dm wrote:
> Hello, I am trying to open a socket connection to a named file on my
> computer and can not seem to get it working. Any help or advice would
> be great.
solution
use what are called unix domain sockets,
in python they are accessed like this
<code>
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect('/tmp/xfmedia_remote.1001.0')
</code>
now s is a normal socket object.
More information about the Tutor
mailing list