Client SDK for Linux Developers' Guide

USB Example

This usb example demonstrates how the usb enumeration facilities provided as part of the PCoIPCore framework can be leveraged to setup a callback to notify the caller when usb devices are (un)plugged into a client. Furthermore, it illustrates how to use the PCoIPCore API to claim/release a device connected to the client.

It is important to note that this example does not leverage the BrokerClient framework to provision a remote host to connect to. Rather, this example is meant to illustrate how an SDK user which implements their own custom broker would go about integrating the provided usb facilities into their PCoIP solution.

For a fully implemented usb solution which leverages PCoIPs BrokerClient please see the usb_session_example.

Building the example

  1. Install the SDK by opening the .dmg and dragging the PCoIPSoftClientSDK folder to your Documents folder (or other location).

  2. Navigate to the example directory

    cd ~/Documents/PCoIPSoftClientSDK/Examples/usb_example
  1. Create a build directory and navigate there
    mkdir build && cd build
  1. Configure the build using cmake.
    cmake -G Xcode ..
  1. Build the example
    cmake --build . --config RelWithDebInfo
  1. Run the example
    ./RelWithDebInfo/usb_example

Last updated: Monday, July 7, 2025