Commit graph

6 commits

Author SHA1 Message Date
Vidar Hokstad
2d820a5600 Started bringing tests up to date 2023-09-25 19:00:56 +01:00
Richard Ramsden
ad10e78306 Major refactor of packet builder
I decided to ditch the Packet class name and go with a Form module
that contains a BaseForm which child classes inherit from.

I've created a few tests so you can see how the BaseForm class
works and how packets can be read and sent over a socket to
an X11 server
2012-05-20 17:36:18 -07:00
Richard Ramsden
a503b8391e add method to give unique ids for x11 resources
X11 Protocol expects clients to track unique identifiers in order to reduce 
network traffic. This reduces network traffic because when you create a new
resource say a window the X11 server doesn't have to reply with the ID
of the newly created resource. This makes the X11 protocol extremely fast
since most requests the server doesn't need to reply to a message.

In the first packet returned from X11 they give you a 
resource-id-mask and a resource-id-base. You can use these values to
generate a unique id for X11.
2012-05-19 15:47:50 -07:00
Richard Ramsden
23fa93fa24 remove old test 2012-05-19 13:15:58 -07:00
Richard Ramsden
93a15e6afa start adding tests 2012-05-19 11:49:44 -07:00
Richard Ramsden
925ecee72c gemifying x11 with jeweler 2011-08-03 23:05:45 -07:00