RTI_RoutingServiceAdapterPlugin Struct Reference
[RTI Routing Service Adapter API]

Adapter plugin. More...


Data Fields

struct RTI_RoutingServiceVersion plugin_version
 The version of this adapter plugin.
RTI_RoutingServiceAdapterPlugin_DeleteFcn adapter_plugin_delete
 Handles the deletion of the adapter plugin (required).
RTI_RoutingServiceAdapterPlugin_CreateConnectionFcn adapter_plugin_create_connection
 Handles the creation of connections (required).
RTI_RoutingServiceAdapterPlugin_DeleteConnectionFcn adapter_plugin_delete_connection
 Handles the deletion of connections (required).
RTI_RoutingServiceConnection_CreateSessionFcn connection_create_session
 Handles the creation of sessions (optional).
RTI_RoutingServiceConnection_DeleteSessionFcn connection_delete_session
 Handles the deletion of sessions (optional).
RTI_RoutingServiceConnection_CreateStreamReaderFcn connection_create_stream_reader
 Handles the creation of stream readers (optional for write-only adapters).
RTI_RoutingServiceConnection_DeleteStreamReaderFcn connection_delete_stream_reader
 Handles the deletion of stream readers (optional for write-only adapters).
RTI_RoutingServiceConnection_CreateStreamWriterFcn connection_create_stream_writer
 Handles the creation of stream writers (optional for read-only adapters).
RTI_RoutingServiceConnection_DeleteStreamWriterFcn connection_delete_stream_writer
 Handles the deletion of stream writers (optional for read-only adapters).
RTI_RoutingServiceConnection_GetDiscoveryReaderFcn connection_get_input_stream_discovery_reader
 Gets the input stream discovery reader (optional).
RTI_RoutingServiceConnection_GetDiscoveryReaderFcn connection_get_output_stream_discovery_reader
 Gets the output stream discovery reader (optional).
RTI_RoutingServiceConnection_CopyTypeRepresentationFcn connection_copy_type_representation
 Handles the copy of type representations (optional).
RTI_RoutingServiceConnection_DeleteTypeRepresentationFcn connection_delete_type_representation
 Handles the deletion of type representations (optional).
RTI_RoutingServiceConnection_ToStringFcn connection_to_string
 Returns the string representation of a connection for logging purposes (optional).
RTI_RoutingServiceAdapterEntity_UpdateFcn connection_update
 [Not supported] Handles configuration changes in a connection (optional).
RTI_RoutingServiceConnection_GetAttributesFcn connection_get_attributes
 [Not supported] Gets the connection attributes
RTI_RoutingServiceAdapterEntity_UpdateFcn session_update
 [Not supported] Handles configuration changes in a session (optional).
RTI_RoutingServiceStreamReader_ReadFcn stream_reader_read
 Reads from an input stream (optional for write-only adapters).
RTI_RoutingServiceStreamReader_ReturnLoanFcn stream_reader_return_loan
 Returns the loan on the read samples and infos (optional for write-only adapters).
RTI_RoutingServiceAdapterEntity_UpdateFcn stream_reader_update
 [Not supported] Handles configuration changes in a stream reader (optional).
RTI_RoutingServiceStreamWriter_WriteFcn stream_writer_write
 Writes to an output stream (optional for read-only adapters).
RTI_RoutingServiceAdapterEntity_UpdateFcn stream_writer_update
 [Not supported] Handles configuration changes in a stream writer (optional).
void * user_object
 A place for adapter implementors to keep a pointer to data that may be needed by the implementation.


Detailed Description

Adapter plugin.

This structure contains the plugin implementation as a set of function pointers.

C adapters are registered with RTI Routing Service using the XML tag <adapter_plugin>

For example:

 <dds>
     ...
     <adapter_library name="MyAdapterLib">
         <adapter_plugin name="MyAdapterPlugin">
            <dll>mycadapter</dll>
            <create_function>
                MyAdapterPlugin_create
            </create_function>
         </adapter_plugin>
         ...
     </adapter_library>
     ...
     <routing_service>
     ...
     </routing_service>
     ...
 </dds>
 

In the previous example, MyAdapterPlugin_create is the function that creates and instance of the adapter plugin.

This function must have the following prototype

See also:
RTI_RoutingServiceAdapterPlugin_CreateFcn

Field Documentation

The version of this adapter plugin.

Handles the deletion of the adapter plugin (required).

Handles the creation of connections (required).

Handles the deletion of connections (required).

Handles the creation of sessions (optional).

Handles the deletion of sessions (optional).

Handles the creation of stream readers (optional for write-only adapters).

Handles the deletion of stream readers (optional for write-only adapters).

Handles the creation of stream writers (optional for read-only adapters).

Handles the deletion of stream writers (optional for read-only adapters).

Gets the input stream discovery reader (optional).

Gets the output stream discovery reader (optional).

Handles the copy of type representations (optional).

Handles the deletion of type representations (optional).

Returns the string representation of a connection for logging purposes (optional).

[Not supported] Handles configuration changes in a connection (optional).

[Not supported] Gets the connection attributes

[Not supported] Handles configuration changes in a session (optional).

Reads from an input stream (optional for write-only adapters).

Returns the loan on the read samples and infos (optional for write-only adapters).

[Not supported] Handles configuration changes in a stream reader (optional).

Writes to an output stream (optional for read-only adapters).

[Not supported] Handles configuration changes in a stream writer (optional).

A place for adapter implementors to keep a pointer to data that may be needed by the implementation.


RTI Routing Service Version 2.0.1 Copyright © 24 Dec 2010 Real-Time Innovations, Inc