Wire format

The protocol is sent over a UNIX domain stream socket. Currently, the endpoint is named \0wayland, but it is subject to change. The protocol is message-based. A message sent by a client to the server is called request. A message from the server to a client is called event. Every message is structured as 32-bit words, values are represented in the host's byte-order.

The message header has 2 words in it:

The payload describes the request/event arguments. Every argument is always aligned to 32-bits. There is no prefix that describes the type, but it is inferred implicitly from the xml specification.

The representation of argument types are as follows:

root 2012-01-26