What is the XPT protocol?
It seems that XPT protocol was developed by ypool.net and there is no official specification of it.
But it is possible to get details from the source code of xptMiner or xptProxy.

You can start from https://github.com/jh000/xptProxy/blob/master/src/xptProxy/xptClient.cpp