All integers in the protocol are sent bigendian

(apart from those which are part of pixel data)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>