Using the Broker Client Example¶
The SDK provides a sample command line pre-session client called broker client example. This would enable you to call the included broker client libraries and establish a PCoIP connection. The broker client example demonstrates the success path for establishing new PCoIP sessions.
Do not Use the Broker Client Example in Production
The broker client is provided as an example only, and should not be used in production. The client does not have thorough error handling and does not validate or sanitize user input.
The sample broker client is located here:
"path-to-unzipped-sdk-package"/sdk/usr/bin/broker_client_example
The two relevant files for the broker client example are:
broker_client_example
login_info.txt
The broker_client_example
executable is the sample command-line client; the login_info
text file contains authentication
information used by the client.
About login_info.txt
The broker client example uses a small local text file to
supply session input values.
The following is a sample login_info.txt
file (one line):
sal-w2k8-ch605.autolab.local autolab autorunner "mypassword" sal-w2k8-ch605
In the example above:
- The FQDN of the host server is
sal-w2k8-ch605.autolab.local
- The domain is
autolab
- The user is
autorunner
- The password is
mypassword
- The host name is
sal-w2k8-ch605
Remote sessions established by broker_client_example
are exactly the same
as sessions established using the PCoIP software client, except that the input values
are provided by login_info.txt
instead of the client’s user interface.