![]() |
RadarFX API Documentation
|
This chapter provides an overview of the simple client example and GUI client included with RadarFX.
The simple example shows a minimalistic application that connects to a server, issues a request and waits for a response. The entire program is shown below.
This application creates a connector object, and then connects to the server.
The example then creates a message handler and registers it for the message response, then sends a request. In this case it is a SAR message request. The application then calls tick on the connection object waiting for the server's response. When the server replies, the callback function handleSarMessage is called and prints out information about the message.
The GUI example is a more robust example and is the source code for the client application that ships with RadarFX. This example uses the Qt GUI library to present a user interface to the user for setting up the requests as well as presenting the responses from the server to the user.
[<< The Client API] [Home]