C++ sample code

Start of changeC++ sample code includes project files for Microsoft Visual Studio 2005 Version 8. End of change

Start of changeSome of the samples are described as follows:End of change

  • cppclient: This uses C++ APIs to create a simple DOS Windows-based client for interacting with the TPF Operations Server and the host. It spins off a separate thread to receive messages and prints them to STDOUT. It also accepts command-line parameters to set connection options.
  • qtos: This uses the C++ ETOSClient::QueryServer function to open a connection to a TPF Operations Server and query it's current status. The query information is then received and printed to STDOUT. It accepts command-line parameters to set connection options for the query request.
  • killtos: This uses the C++ ETOSClient::KillServer funciton to open a connection to a TPF Operations Server and end either a specific terminal address or host port, or the entire server. It accepts command-line parameters to set connection options for the shutdown request.
  • LOG2FILE: This is a C++ program that logs output messages from the TPF Operations Server console window to a flat file. A new file is generated based on the time intervals that the system administrator defines. This is useful for reviewing operation messages at any time. Source code and parameters are provided so that you can customize the flat file logging client to meet your usage requirements.