Skip to content

Using the Client Session API

Use of the Client Session C++ API is demonstrated in <pcoip-client-sdk>\examples\client_session_example\client_session_main.cpp. It includes the steps outlined in the diagram below:

Alt Text PCoIP Session Client API Sequence Diagram

Applications and Files Required

The following files and application versions are required to build the minimal client and client session examples:

  • Cmake 3.10 or above.
  • Windows 10 SDK.
  • Microsoft Visual Studio 2015.
  • Boost C++ Libraries 1.66.0.

Each of these steps is used by the Session Client API, with a comment identifying the step number:

  1. Setup Environment and Implementations: Os specifc initialization. Instantiate a Configuration Provider object.
  2. Parse Command Line: Define and parse supported command line parameters.
  3. Setup Session Options: Validate the options passed via the command line and setup the Configuration Provider object accordingly.
  4. Setup Session Connection Information: Pack the session parameter, received via the command line, into the structures required by the API.
  5. Get Session Instance and Run:: Obtain the main session object, set the Configuration Provider and run the session. The run call blocks until the session is terminated.
  6. Post-Session Clean-up: Performs any post-session shutdown processing.