A target connection defines connection settings for a target machine. Each connection provides a launch target
that you can select in the launch bar to specify where an application is to run.
For a target connection to be active (and hence, usable for launching applications), you must ensure that the machine
that the connection refers to is accessible to the host machine through a TCP/IP network link. Information on setting up
such a network link is given in
IP communications.
To create a target connection:
-
In the launch bar at the top of the IDE UI, click the button for the Launch Target
dropdown, which is the rightmost dropdown:
-
Select New Launch Target to open the launch target wizard selector.
-
Select QNX Target in the list of target types, then click Next to open
the New QNX Target window.
- Optional:
In the Target Name field, you can uncheck the Same as hostname box
and enter a nondefault name for the launch target.
For convenience, this box is initially checked so the value entered in the
Connection field
(in the next step) is used as the launch target name.
Note:
This IDE dialog uses the standard networking term of hostname to refer to the name of the machine
you're connecting to. In this case, it's the target machine, not the host (development) machine.
-
In the Connection field, enter either the hostname or IP address of the target machine.
The port number is preset and is used by the
qconn agent, which handles IP communication.
-
Click Finish to create the target connection.
The IDE adds an entry for the target referred to by the new connection to the Launch Target dropdown.
It also tries to connect to the target using the specified settings. If the connection attempt succeeds, you'll see a
purple circle symbolizing a physical connector but with no red box
(
), on the left of the launch target name.
If it fails, you'll see a red box with an X in the lower left corner of the icon
(
).
You can now select the new launch target to tell the IDE to debug, profile, or run an application
using the corresponding connection settings to communicate with the target.
You can also edit the connection settings for a launch target
by clicking the button ()
on the right of its name.