Provide X extensions.
You can get protocol specification and library specification from
here
.