RTI Connext TSS API
Version 3.1.2
|
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> Contains the RTI::TSS::Base documentation More...
Data Structures | |
class | RTI::TSS::Base |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> The base class of TSS implemented by RTI More... | |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> Contains the RTI::TSS::Base documentation
Connext TSS implements the FACE TSS Type-Specific Base and Typed interfaces in the C++ programming language as the RTI::TSS::Base class.
RTI::TSS::Base also implements the FACE Configuration Injectable interface for Connext TSS configuration
void RTI::TSS::Base::Initialize | ( | const FACE::CONFIGURATION_RESOURCE & | configuration, |
FACE::RETURN_CODE_TYPE::Value & | return_code | ||
) |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> Initialize the Base instance
Once the Configuration interface reference is set, the TSS is initialized by calling the Base interface Initialize(TS)
function.
[in] | configuration | The name of the configuration to load. Passed to the Configuration Interface’s Initialize() member function. |
[out] | return_code | The return code for the call to Initialize(TS). Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
The Initialize(TS)
function will initialize Connext TSS and its supporting DDS with configuration data from its set configuration interface. It will load the system configuration the first time it is called, idempotently.
Initialize(TS)
function is non-blocking. void RTI::TSS::Base::Create_Connection | ( | const FACE::TSS::CONNECTION_NAME_TYPE & | connection_name, |
FACE::TIMEOUT_TYPE | timeout, | ||
FACE::TSS::CONNECTION_ID_TYPE & | connection_id, | ||
FACE::TSS::MESSAGE_SIZE_TYPE & | max_message_size, | ||
FACE::RETURN_CODE_TYPE::Value & | return_code | ||
) |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> A connection is created with the RTI::TSS::Base Create_Connection function
[in] | connection_name | The name of the connection to create. Must match the name (case-insensitive) of a connection in configuration data. |
[in] | timeout | Specifies a timeout for connection creation. |
[out] | connection_id | A unique connection ID. This ID will be used to refer to the connection in all other TSS API calls. This field is passed by reference and is set upon return from a successful call. |
[out] | max_message_size | The maximum size of a message for this connection. This field is passed by reference and is set upon return from a successful call. |
[out] | return_code | The return code for the call to FACE::TS::Create_Connection. Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
FACE::NO_ERROR
The operation completed successfully. FACE::INVALID_PARAM
A configuration with a name matching the provided connection_name
parameter was not found. FACE::INVALID_CONFIG
Connext TSS was unable to create the connection due to an invalid configuration. FACE::NOT_AVAILABLE
Connext TSS was not properly initialized prior to the call to FACE::TS::Create_Connection
. A successfully created connection will have had DDS entities asserted or created in the following manner:
DDS Enity Creation:
DomainParticipant
- Created if there is no existing DomainParticipant for the new connection’s configured domain
parameter. Otherwise the existing DomainParticipant on that domain will be reused by the new connection. See the OMG for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.2.1, for information on the DomainParticipant entity class.Topic
- Created if there is no existing Topic matching the new connection’s topic name in the connection configuration. Otherwise the existing Topic will be reused by the new connection. See the OMG Specification for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.3.2, for information on the Topic entity class.Publisher
- Created if the connection is configured as FACE::SOURCE or FACE::BI_DIRECTIONAL. See the OMG Specification for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.4.1, for information on the Publisher entity class.Subscriber
- Created if the connection is configured as FACE::DESTINATION or FACE::BI_DIRECTIONAL. See the OMG Specification for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.5.2, for information on the Subscriber entity class.DataWriter
- Created if the connection is configured as FACE::SOURCE or FACE::BI_DIRECTIONAL. See the OMG Specification for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.4.2, for information on the DataWriter entity class. DataReader
- Created if the connection is configured as FACE::DESTINATION or FACE::BI_DIRECTIONAL. See the OMG Specification for Data Distribution Service for Real-time Systems, v1.2 section 7.1.2.5.3, for information on the DataReader entity class. Create_Connection
function is non-blocking. void RTI::TSS::Base::Destroy_Connection | ( | FACE::TSS::CONNECTION_ID_TYPE | connection_id, |
FACE::RETURN_CODE_TYPE::Value & | return_code | ||
) |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> Destroys a new connection
[in] | connection_id | The ID of the connection to be destroyed. |
[out] | return_code | The return code for the call to Destroy_Connection() . Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
FACE::NO_ERROR
The operation completed successfully. FACE::INVALID_PARAM
The connection does not exist. FACE::NO_ACTION
The connection was already destroyed. FACE::NOT_AVAILABLE
Connext TSS was not properly initialized prior to the call to FACE::TS::Destroy_Connection
. void RTI::TSS::Base::Unregister_Callback | ( | FACE::TSS::CONNECTION_ID_TYPE | connection_id, |
FACE::RETURN_CODE_TYPE::Value & | return_code | ||
) |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> This function removes a registered callback from a connection.
[in] | connection_id | The ID of the connection with the callback that will be unregistered. |
[out] | return_code | The return code for the call to Unregister_Callback . Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
FACE::NO_ERROR
The operation was successful. connection_id
parameter does not correspond to an active connection or the data_callback
parameter is invalid. FACE::NOT_AVAILABLE
The RTI TSS was not properly initialized prior to the call to FACE::TS::Receive_Message
or no data was received.
|
virtual |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> A new Base instance must set its reference to a Configuration Interface before the Base is initialized.
[in] | interface_name | Unused by Connext TSS |
[in] | interface_reference | A reference to an FACE Configuration instance for Connext TSS. |
[out] | id | Unused by Connext TSS |
[out] | return_code | The return code for the call to Set_Reference(Base) . Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
FACE::NO_ERROR
The operation completed successfully. FACE::NO_ACTION
A configuration reference was previously set successfully. The Set_Reference
function sets the FACE Configuration instance that a Base instance will use to configure the TSS connections it will create, as well as the underlying DDS.
The interface_reference
must be a configured instance of RTI::Configuration implementing the FACE 3.x Configuration interface. For help in creating and setting the configuration data in the configuration interface, see Configuration Interface.
Implements FACE::Configuration_Injectable::Injectable.
void RTI::TSS::Base::Enable_DDS_Entities | ( | FACE::RETURN_CODE_TYPE::Value & | return_code | ) |
<<Connext Micro>> <<Connext Pro>> <<SafetyBase or Stricter>> Enable underliying DDS entities
The DDS entities underlying Connext TSS connections can have their QoS configured such that they are disabled upon connection creation, with resources allocated but no processes running or discovery messages sent. This would be necessary for platforms with explicit intialization phases (e.g. ARINC 653).
Consequently, after all connections have been created and the platform is done with intialization, the first call after initialization must be to this function, so that DDS processes can run and DDS discovery can be done.
[out] | return_code | The return code for the call to Enable_DDS_Entities() . Upon return of the call, this parameter will be populated with a value that will indicate either success or a reason for failure. |
FACE::NO_ERROR
The operation completed successfully. FACE::NOT_AVAILABLE
Connext TSS was not initialized before this operation, or the operation failed to enable DDS entities.