libxrdp-protocol: added read functions