Shared code for the implementation of Nvidia's GameStream protocol