Re: Is it possible to do X forwarding over bluetooth?

2010-09-16 Thread Timo Juhani Lindfors
Han keepsim...@gmail.com writes:
 How does X client talk to unix socket?  Any function names so I can
 search?

I have not used xlib for a while. IIRC calling XOpenDisplay(:0)
tries to use /tmp/.X11-unix/X0 if possible.
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Is it possible to do X forwarding over bluetooth?

2010-09-16 Thread Alan Coopersmith

On 09/16/10 06:43 AM, Han wrote:

On Mon, Sep 13, 2010 at 9:35 PM, Timo Juhani Lindfors
timo.lindf...@iki.fi  wrote:

Hankeepsim...@gmail.com  writes:

btw, I can write program to create socket directly over bluetooth
without using PAN.


X clients can talk to tcp port or unix socket. You can use the socat
program to forward either of those to the stdin of your program.



How does X client talk to unix socket?  Any function names so I can search?


Prior to XCB, via libxtrans:
http://www.x.org/releases/X11R7.5/doc/xtrans/Xtrans.html
http://www.x.org/releases/X11R7.5/doc/xtrans/Xtrans.pdf

In systems using XCB (including all systems running Xlib 1.4 which requires
XCB), it now goes through the xcb transport instead.

--
-Alan Coopersmith-alan.coopersm...@oracle.com
 Oracle Solaris Platform Engineering: X Window System
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Is it possible to do X forwarding over bluetooth?

2010-09-15 Thread Han
On Mon, Sep 13, 2010 at 9:35 PM, Timo Juhani Lindfors
timo.lindf...@iki.fi wrote:
 Han keepsim...@gmail.com writes:
 btw, I can write program to create socket directly over bluetooth
 without using PAN.

 X clients can talk to tcp port or unix socket. You can use the socat
 program to forward either of those to the stdin of your program.



How does X client talk to unix socket?  Any function names so I can search?

thanks
Han
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Is it possible to do X forwarding over bluetooth?

2010-09-13 Thread Timo Juhani Lindfors
Han keepsim...@gmail.com writes:
 btw, I can write program to create socket directly over bluetooth
 without using PAN.

X clients can talk to tcp port or unix socket. You can use the socat
program to forward either of those to the stdin of your program.

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com



Re: Is it possible to do X forwarding over bluetooth?

2010-09-13 Thread Alan Coopersmith
Han wrote:
 Hi,
 
 I wanted to do X forwarding over bluetooth connection. I tried with
 using SSH X forwarding over bluetooth PAN.  It worked but it's slow
 and complex to setup. I am wondering:  does X forwarding require IP
 network address?  Is it possible to do X forwarding directly over
 bluetooth?

I don't know about the ssh implementation, but the X protocol just
requires some sort of network protocol, and has in the past been
implemented over DECnet, IPv4, and IPv6 at least (and I think a
few rare experimental protocols).   Adding support for a new network
protocol type is not a trivial task however, including adding support
to the protocol for the address format if you expect xhost +hostname
to work.

-- 
-Alan Coopersmith-alan.coopersm...@oracle.com
 Oracle Solaris Platform Engineering: X Window System

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com