[Tutor] Re: open a socket from a named file on linux

Lee Harr missive at hotmail.com
Wed Mar 2 02:26:20 CET 2005


Sorry. I sent this yesterday but forgot the subject.
Hope this helps point you in the right direction ...


>I attempting to control xfmedia,
>http://spuriousinterrupt.org/projects/xfmedia/ , via it's remote from
>python and I can not get a connection.
>


>s = socket.fromfd('/tmp/xfmedia_remote.1001.0', socket.AF_UNIX,
>socket.SOCK_STREAM)
>
>i get this error
>
></xfmedia_remote.1001.0', socket.AF_UNIX, socket.SOCK_STREAM)
>Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>


>f = open('/tmp/xfmedia_remote.1001.0')
>Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>IOError: [Errno 6] No such device or address:
>'/tmp/xfmedia_remote.1001.0'
>
>yet ls shows the file exists, xfmedia is working fine.
>


I have not done this before, but I think you need to create
a _new_ socket for your end, and then connect to the
other socket. Does that make more sense?

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the Tutor mailing list