LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2014, 09:25 PM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
X11 protocol handshake questions


Hi everybody

I am working on a little application as part of my ongoing experiment of accomplishing as much as possible without touching the C Standard Library. So far I have been doing quite well, I have been able to display graphics in the Linux framebuffer and even get DRM working. But now, I want to get into using X11.
And with this, I have actually been successful. I have a program that opens a socket (unix domain or TCP) and communicates with the X server directly. However, so far I have only tested in controlled environments, and I know I am not handling some parts of the X protocol as well as I should be. So I have a couple questions that might better be answered by somebody who already has a more intimate knowledge of the X protocol than I do.

When connecting to the X server, there is a handshake between the client and server. In the server's response, there is a lot of information. There is a header, a setup section, a vendor string, pixmap formats, root windows, depth info sections, and visual IDs. So far, I can interpret everything up to the root windows with no problems or questions. However, it seems to be possible in the X protocol for there to be MORE THAN ONE root window?

1.
Is that true? (can there be more than one root window?)
If so, when would that ever happen?

The root window section(s) specify the number of available depths, which are the next section of the packet.

2.
If there is more than one root, will all the depth appear after all the roots have been listed, or will the depths of each root be listed directly after that particular root section?

3.
Likewise, each depth contains a count of the visual IDs which will follow the depth section. If there is more than one depth, will each depth be followed by the visual IDs for that depth, or will all the visual IDs be listed after all the depths have been listed?

Thanks everybody!
 
  


Reply

Tags
protocol, x11


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH2 Protocol In depth Questions :) LinuxInDepth Linux - Security 16 04-24-2012 09:49 AM
NX --> X11 Questions... RayAID Linux - Newbie 1 10-12-2010 11:08 AM
GIOP protocol questions felbvts Linux - Networking 0 04-20-2009 09:05 AM
x11 questions Carpo Slackware 2 08-09-2008 11:29 AM
Which mouse protocol for Logitech M-S30 in X11 and GPM? gargamel Linux - Hardware 2 05-24-2008 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration