XCB, an "X-protocol C Binding", is a library for marshaling X Window System network protocol requests and responses. It is intended to replace Xlib.
XCB, an "X-protocol C Binding", is a library for marshaling X Window System network protocol requests and responses. It provides a C API for X clients to connect to and communicate with X servers.
XCB is intended to replace Xlib, the original X client library for C that dates to the mid 1980s. Modern releases of Xlib no longer do their own network access, leaving that work to XCB. This, together with small bits of extra API in both libraries, allows programs and libraries that were written against the Xlib API to incrementally migrate to using XCB instead. As a result, an increasing number of X-related libraries now rely on XCB even though they expose Xlib-style APIs.
If you just want to write graphical applications, you should look at high-level toolkits such as Gtk+ or Qt rather than the low-level protocol bindings like Xlib or XCB.