RTI Connext C API
Version 6.1.1
|
Built-in type consisting of a variable-length array of opaque bytes. More...
Data Structures | |
struct | DDS_Octets |
Built-in type consisting of a variable-length array of opaque bytes. More... | |
struct | DDS_OctetsSeq |
Instantiates FooSeq < DDS_Octets > . More... | |
struct | DDS_OctetsTypeSupport |
<<interface>> DDS_Octets type support. More... | |
Typedefs | |
typedef struct DDS_Octets | DDS_Octets |
Built-in type consisting of a variable-length array of opaque bytes. More... | |
typedef struct DDS_OctetsDataWriter | DDS_OctetsDataWriter |
<<interface>> Instantiates DataWriter < DDS_Octets >. More... | |
typedef struct DDS_OctetsDataReader | DDS_OctetsDataReader |
<<interface>> Instantiates DataReader < DDS_Octets >. More... | |
Functions | |
DDS_Octets * | DDS_Octets_new (void) |
Constructor. More... | |
DDS_Octets * | DDS_Octets_new_w_size (int size) |
Constructor that specifies the size of the allocated octets array. More... | |
void | DDS_Octets_delete (DDS_Octets *self) |
Destructor. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_register_type (DDS_DomainParticipant *participant, const char *type_name) |
Allows an application to communicate to RTI Connext the existence of the DDS_Octets data type. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_unregister_type (DDS_DomainParticipant *participant, const char *type_name) |
Allows an application to unregister the DDS_Octets data type from RTI Connext. After calling unregister_type, no further communication using this type is possible. More... | |
const char * | DDS_OctetsTypeSupport_get_type_name (void) |
Get the default name for the DDS_Octets type. More... | |
void | DDS_OctetsTypeSupport_print_data (const DDS_Octets *a_data) |
<<extension>> Print value of data type to standard out. More... | |
DDS_TypeCode * | DDS_OctetsTypeSupport_get_typecode (void) |
<<extension>> Retrieves the TypeCode for the Type. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_serialize_data_to_cdr_buffer (char *buffer, unsigned int *length, const DDS_Octets *a_data) |
<<extension>> Serializes the input sample into a CDR buffer of octets. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_serialize_data_to_cdr_buffer_ex (char *buffer, unsigned int *length, const DDS_Octets *a_data, DDS_DataRepresentationId_t representation) |
<<extension>> Serializes the input sample into a buffer of octets. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_deserialize_data_from_cdr_buffer (DDS_Octets *a_data, const char *buffer, unsigned int length) |
<<extension>> Deserializes a sample from a buffer of octets. More... | |
DDS_ReturnCode_t | DDS_OctetsTypeSupport_data_to_string (const DDS_Octets *sample, char *str, DDS_UnsignedLong *str_size, DDS_PrintFormatProperty *property) |
<<extension>> Get the string representation of an input sample. More... | |
DDS_OctetsDataWriter * | DDS_OctetsDataWriter_narrow (DDS_DataWriter *writer) |
Narrow the given DDS_DataWriter pointer to a DDS_OctetsDataWriter pointer. More... | |
DDS_DataWriter * | DDS_OctetsDataWriter_as_datawriter (DDS_OctetsDataWriter *writer) |
Widen the given DDS_OctetsDataWriter pointer to a DDS_DataWriter pointer. More... | |
DDS_Octets * | DDS_OctetsDataWriter_create_data (DDS_OctetsDataWriter *self) |
Creates an octet data sequence. More... | |
DDS_Boolean | DDS_OctetsDataWriter_delete_data (DDS_OctetsDataWriter *self, DDS_Octets *sample) |
Destroys a octet data sequence created by DDS_OctetsDataWriter_create_data. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write (DDS_OctetsDataWriter *self, const DDS_Octets *instance_data, const DDS_InstanceHandle_t *handle) |
Modifies the value of a DDS_Octets data instance. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets (DDS_OctetsDataWriter *self, const unsigned char *octets, int length, const DDS_InstanceHandle_t *handle) |
<<extension>> Modifies the value of a DDS_Octets data instance. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets_seq (DDS_OctetsDataWriter *self, const struct DDS_OctetSeq *octets, const DDS_InstanceHandle_t *handle) |
<<extension>> Modifies the value of a DDS_Octets data instance. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_w_timestamp (DDS_OctetsDataWriter *self, const DDS_Octets *instance_data, const DDS_InstanceHandle_t *handle, const struct DDS_Time_t *source_timestamp) |
Performs the same function as DDS_OctetsDataWriter_write except that it also provides the value for the source_timestamp . More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets_w_timestamp (DDS_OctetsDataWriter *self, const unsigned char *octets, int length, const DDS_InstanceHandle_t *handle, const struct DDS_Time_t *source_timestamp) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets except that it also provides the value for the source_timestamp . More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets_seq_w_timestamp (DDS_OctetsDataWriter *self, const struct DDS_OctetSeq *octets, const DDS_InstanceHandle_t *handle, const struct DDS_Time_t *source_timestamp) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets_seq except that it also provides the value for the source_timestamp . More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_w_params (DDS_OctetsDataWriter *self, const DDS_Octets *instance_data, struct DDS_WriteParams_t *params) |
Performs the same function as DDS_OctetsDataWriter_write except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets_w_params (DDS_OctetsDataWriter *self, const unsigned char *octets, int length, struct DDS_WriteParams_t *params) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie. More... | |
DDS_ReturnCode_t | DDS_OctetsDataWriter_write_octets_seq_w_params (DDS_OctetsDataWriter *self, const struct DDS_OctetSeq *octets, struct DDS_WriteParams_t *params) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets_seq except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie. More... | |
DDS_OctetsDataReader * | DDS_OctetsDataReader_narrow (DDS_DataReader *reader) |
Narrow the given DDS_DataReader pointer to a DDS_OctetsDataReader pointer. More... | |
DDS_DataReader * | DDS_OctetsDataReader_as_datareader (DDS_OctetsDataReader *reader) |
Widen the given DDS_OctetsDataReader pointer to a DDS_DataReader pointer. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_read (DDS_OctetsDataReader *self, struct DDS_OctetsSeq *received_data, struct DDS_SampleInfoSeq *info_seq, DDS_Long max_samples, DDS_SampleStateMask sample_states, DDS_ViewStateMask view_states, DDS_InstanceStateMask instance_states) |
Access a collection of data samples from the DDS_DataReader. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_take (DDS_OctetsDataReader *self, struct DDS_OctetsSeq *received_data, struct DDS_SampleInfoSeq *info_seq, DDS_Long max_samples, DDS_SampleStateMask sample_mask, DDS_ViewStateMask view_mask, DDS_InstanceStateMask instance_mask) |
Access a collection of data-samples from the DDS_DataReader. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_read_w_condition (DDS_OctetsDataReader *self, struct DDS_OctetsSeq *received_data, struct DDS_SampleInfoSeq *info_seq, DDS_Long max_samples, DDS_ReadCondition *condition) |
Accesses via DDS_OctetsDataReader_read the samples that match the criteria specified in the DDS_ReadCondition. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_take_w_condition (DDS_OctetsDataReader *self, struct DDS_OctetsSeq *received_data, struct DDS_SampleInfoSeq *info_seq, DDS_Long max_samples, DDS_ReadCondition *condition) |
Analogous to DDS_OctetsDataReader_read_w_condition except it accesses samples via the DDS_OctetsDataReader_take operation. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_read_next_sample (DDS_OctetsDataReader *self, DDS_Octets *received_data, struct DDS_SampleInfo *sample_info) |
Copies the next not-previously-accessed data value from the DDS_DataReader. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_take_next_sample (DDS_OctetsDataReader *self, DDS_Octets *received_data, struct DDS_SampleInfo *sample_info) |
Copies the next not-previously-accessed data value from the DDS_DataReader. More... | |
DDS_ReturnCode_t | DDS_OctetsDataReader_return_loan (DDS_OctetsDataReader *self, struct DDS_OctetsSeq *received_data, struct DDS_SampleInfoSeq *info_seq) |
Indicates to the DDS_DataReader that the application is done accessing the collection of received_data and info_seq obtained by some earlier invocation of read or take on the DDS_DataReader. More... | |
Variables | |
int | DDS_Octets::length |
Number of octets to serialize. More... | |
unsigned char * | DDS_Octets::value |
DDS_Octets array value. More... | |
Built-in type consisting of a variable-length array of opaque bytes.
typedef struct DDS_Octets DDS_Octets |
Built-in type consisting of a variable-length array of opaque bytes.
typedef struct DDS_OctetsDataWriter DDS_OctetsDataWriter |
<<interface>> Instantiates DataWriter
< DDS_Octets >.
typedef struct DDS_OctetsDataReader DDS_OctetsDataReader |
<<interface>> Instantiates DataReader
< DDS_Octets >.
When reading or taking data with this reader, if you request a copy of the samples instead of a loan, and the byte array in a destination data sample is NULL, the middleware will allocate a new array for you of sufficient length to hold the received data. The new array will be allocated with DDS_OctetBuffer_alloc; the sample's destructor will delete it.
A non- NULL array is assumed to be allocated to sufficient length to store the incoming data. It will not be reallocated.
DDS_Octets* DDS_Octets_new | ( | void | ) |
Constructor.
The default constructor initializes the newly created object with NULL value, and zero length.
DDS_Octets* DDS_Octets_new_w_size | ( | int | size | ) |
Constructor that specifies the size of the allocated octets array.
After this function is called, length is set to zero.
size | <<in>> Size of the allocated octets array. Cannot be smaller than zero. |
void DDS_Octets_delete | ( | DDS_Octets * | self | ) |
Destructor.
DDS_ReturnCode_t DDS_OctetsTypeSupport_register_type | ( | DDS_DomainParticipant * | participant, |
const char * | type_name | ||
) |
Allows an application to communicate to RTI Connext the existence of the DDS_Octets data type.
By default, The DDS_Octets built-in type is automatically registered when a DomainParticipant is created using the type_name returned by DDS_OctetsTypeSupport_get_type_name. Therefore, the usage of this function is optional and it is only required when the automatic built-in type registration is disabled using the participant property "dds.builtin_type.auto_register".
This function can also be used to register the same DDS_OctetsTypeSupport with a DDS_DomainParticipant using different values for the type_name.
If register_type
is called multiple times with the same DDS_DomainParticipant and type_name
, the second (and subsequent) registrations are ignored by the operation.
participant | <<in>> the DDS_DomainParticipant to register the data type DDS_Octets with. Cannot be NULL. |
type_name | <<in>> the type name under with the data type DDS_Octets is registered with the participant; this type name is used when creating a new DDS_Topic. (See DDS_DomainParticipant_create_topic.) The name may not be NULL or longer than 255 characters. |
DDS_ReturnCode_t DDS_OctetsTypeSupport_unregister_type | ( | DDS_DomainParticipant * | participant, |
const char * | type_name | ||
) |
Allows an application to unregister the DDS_Octets data type from RTI Connext. After calling unregister_type, no further communication using this type is possible.
type_name
is registered with the participant and all DDS_Topic objects referencing the type have been destroyed. If the type is not registered with the participant, or if any DDS_Topic is associated with the type, the operation will fail with DDS_RETCODE_ERROR. participant | <<in>> the DDS_DomainParticipant to unregister the data type DDS_Octets from. Cannot be NULL. |
type_name | <<in>> the type name under with the data type DDS_Octets is registered with the participant. The name should match a name that has been previously used to register a type with the participant. Cannot be NULL. |
const char* DDS_OctetsTypeSupport_get_type_name | ( | void | ) |
Get the default name for the DDS_Octets type.
Can be used for calling DDS_OctetsTypeSupport_register_type or creating DDS_Topic.
void DDS_OctetsTypeSupport_print_data | ( | const DDS_Octets * | a_data | ) |
<<extension>> Print value of data type to standard out.
The generated implementation of the operation knows how to print value of a data type.
a_data | <<in>> DDS_Octets to be printed. |
DDS_TypeCode* DDS_OctetsTypeSupport_get_typecode | ( | void | ) |
<<extension>> Retrieves the TypeCode for the Type.
DDS_ReturnCode_t DDS_OctetsTypeSupport_serialize_data_to_cdr_buffer | ( | char * | buffer, |
unsigned int * | length, | ||
const DDS_Octets * | a_data | ||
) |
<<extension>> Serializes the input sample into a CDR buffer of octets.
DDS_ReturnCode_t DDS_OctetsTypeSupport_serialize_data_to_cdr_buffer_ex | ( | char * | buffer, |
unsigned int * | length, | ||
const DDS_Octets * | a_data, | ||
DDS_DataRepresentationId_t | representation | ||
) |
<<extension>> Serializes the input sample into a buffer of octets.
DDS_ReturnCode_t DDS_OctetsTypeSupport_deserialize_data_from_cdr_buffer | ( | DDS_Octets * | a_data, |
const char * | buffer, | ||
unsigned int | length | ||
) |
<<extension>> Deserializes a sample from a buffer of octets.
DDS_ReturnCode_t DDS_OctetsTypeSupport_data_to_string | ( | const DDS_Octets * | sample, |
char * | str, | ||
DDS_UnsignedLong * | str_size, | ||
DDS_PrintFormatProperty * | property | ||
) |
<<extension>> Get the string representation of an input sample.
DDS_OctetsDataWriter* DDS_OctetsDataWriter_narrow | ( | DDS_DataWriter * | writer | ) |
Narrow the given DDS_DataWriter pointer to a DDS_OctetsDataWriter pointer.
DDS_DataWriter* DDS_OctetsDataWriter_as_datawriter | ( | DDS_OctetsDataWriter * | writer | ) |
Widen the given DDS_OctetsDataWriter pointer to a DDS_DataWriter pointer.
DDS_Octets* DDS_OctetsDataWriter_create_data | ( | DDS_OctetsDataWriter * | self | ) |
Creates an octet data sequence.
The size of the instance is determined by the DataWriter property dds.builtin_type.octets.alloc_size.
Default size: dds.builtin_type.octets.max_size property of DomainParticipant if defined. Otherwise 2048.
Created instances must be deleted with DDS_OctetsDataWriter_delete_data.
DDS_Boolean DDS_OctetsDataWriter_delete_data | ( | DDS_OctetsDataWriter * | self, |
DDS_Octets * | sample | ||
) |
Destroys a octet data sequence created by DDS_OctetsDataWriter_create_data.
DDS_ReturnCode_t DDS_OctetsDataWriter_write | ( | DDS_OctetsDataWriter * | self, |
const DDS_Octets * | instance_data, | ||
const DDS_InstanceHandle_t * | handle | ||
) |
Modifies the value of a DDS_Octets data instance.
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets | ( | DDS_OctetsDataWriter * | self, |
const unsigned char * | octets, | ||
int | length, | ||
const DDS_InstanceHandle_t * | handle | ||
) |
<<extension>> Modifies the value of a DDS_Octets data instance.
self | <<in>> Cannot be NULL. |
octets | <<in>> Array of octets to be published. |
length | <<in>> Number of octets to be published. |
handle | <<in>> The special value DDS_HANDLE_NIL should be used always. |
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets_seq | ( | DDS_OctetsDataWriter * | self, |
const struct DDS_OctetSeq * | octets, | ||
const DDS_InstanceHandle_t * | handle | ||
) |
<<extension>> Modifies the value of a DDS_Octets data instance.
self | <<in>> Cannot be NULL. |
octets | <<in>> Sequence of octets to be published. |
handle | <<in>> The special value DDS_HANDLE_NIL should be used always. |
DDS_ReturnCode_t DDS_OctetsDataWriter_write_w_timestamp | ( | DDS_OctetsDataWriter * | self, |
const DDS_Octets * | instance_data, | ||
const DDS_InstanceHandle_t * | handle, | ||
const struct DDS_Time_t * | source_timestamp | ||
) |
Performs the same function as DDS_OctetsDataWriter_write except that it also provides the value for the source_timestamp
.
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets_w_timestamp | ( | DDS_OctetsDataWriter * | self, |
const unsigned char * | octets, | ||
int | length, | ||
const DDS_InstanceHandle_t * | handle, | ||
const struct DDS_Time_t * | source_timestamp | ||
) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets except that it also provides the value for the source_timestamp
.
self | <<in>> Cannot be NULL. |
octets | <<in>> Array of octets to be published. |
length | <<in>> Number of octets to be published. |
handle | <<in>> The special value DDS_HANDLE_NIL should be used always. |
source_timestamp | <<in>> The timestamp value must be greater than or equal to the timestamp value used in the last writer operation. See FooDataWriter_write_w_timestamp. Cannot be NULL. |
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets_seq_w_timestamp | ( | DDS_OctetsDataWriter * | self, |
const struct DDS_OctetSeq * | octets, | ||
const DDS_InstanceHandle_t * | handle, | ||
const struct DDS_Time_t * | source_timestamp | ||
) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets_seq except that it also provides the value for the source_timestamp
.
self | <<in>> Cannot be NULL. |
octets | <<in>> Sequence of octets to be published. |
handle | <<in>> The special value DDS_HANDLE_NIL should be used always. |
source_timestamp | <<in>> The timestamp value must be greater than or equal to the timestamp value used in the last writer operation. See FooDataWriter_write_w_timestamp. Cannot be NULL. |
DDS_ReturnCode_t DDS_OctetsDataWriter_write_w_params | ( | DDS_OctetsDataWriter * | self, |
const DDS_Octets * | instance_data, | ||
struct DDS_WriteParams_t * | params | ||
) |
Performs the same function as DDS_OctetsDataWriter_write except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie.
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets_w_params | ( | DDS_OctetsDataWriter * | self, |
const unsigned char * | octets, | ||
int | length, | ||
struct DDS_WriteParams_t * | params | ||
) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie.
self | <<in>> Cannot be NULL. |
octets | <<in>> Array of octets to be published. |
length | <<in>> Number of octets to be published. |
params | <<in>> The DDS_WriteParams_t parameter containing the instance handle, source timestamp, publication priority, and cookie to be used in write operation. See FooDataWriter_write_w_params. Cannot be NULL. |
DDS_ReturnCode_t DDS_OctetsDataWriter_write_octets_seq_w_params | ( | DDS_OctetsDataWriter * | self, |
const struct DDS_OctetSeq * | octets, | ||
struct DDS_WriteParams_t * | params | ||
) |
<<extension>> Performs the same function as DDS_OctetsDataWriter_write_octets_seq except that it also allows specification of the instance handle, source timestamp, publication priority, and cookie.
self | <<in>> Cannot be NULL. |
octets | <<in>> Sequence of octets to be published. |
params | <<in>> The DDS_WriteParams_t parameter containing the instance handle, source timestamp, publication priority, and cookie to be used in write operation. See FooDataWriter_write_w_params. Cannot be NULL. |
DDS_OctetsDataReader* DDS_OctetsDataReader_narrow | ( | DDS_DataReader * | reader | ) |
Narrow the given DDS_DataReader pointer to a DDS_OctetsDataReader pointer.
DDS_DataReader* DDS_OctetsDataReader_as_datareader | ( | DDS_OctetsDataReader * | reader | ) |
Widen the given DDS_OctetsDataReader pointer to a DDS_DataReader pointer.
DDS_ReturnCode_t DDS_OctetsDataReader_read | ( | DDS_OctetsDataReader * | self, |
struct DDS_OctetsSeq * | received_data, | ||
struct DDS_SampleInfoSeq * | info_seq, | ||
DDS_Long | max_samples, | ||
DDS_SampleStateMask | sample_states, | ||
DDS_ViewStateMask | view_states, | ||
DDS_InstanceStateMask | instance_states | ||
) |
Access a collection of data samples from the DDS_DataReader.
DDS_ReturnCode_t DDS_OctetsDataReader_take | ( | DDS_OctetsDataReader * | self, |
struct DDS_OctetsSeq * | received_data, | ||
struct DDS_SampleInfoSeq * | info_seq, | ||
DDS_Long | max_samples, | ||
DDS_SampleStateMask | sample_mask, | ||
DDS_ViewStateMask | view_mask, | ||
DDS_InstanceStateMask | instance_mask | ||
) |
Access a collection of data-samples from the DDS_DataReader.
DDS_ReturnCode_t DDS_OctetsDataReader_read_w_condition | ( | DDS_OctetsDataReader * | self, |
struct DDS_OctetsSeq * | received_data, | ||
struct DDS_SampleInfoSeq * | info_seq, | ||
DDS_Long | max_samples, | ||
DDS_ReadCondition * | condition | ||
) |
Accesses via DDS_OctetsDataReader_read the samples that match the criteria specified in the DDS_ReadCondition.
DDS_ReturnCode_t DDS_OctetsDataReader_take_w_condition | ( | DDS_OctetsDataReader * | self, |
struct DDS_OctetsSeq * | received_data, | ||
struct DDS_SampleInfoSeq * | info_seq, | ||
DDS_Long | max_samples, | ||
DDS_ReadCondition * | condition | ||
) |
Analogous to DDS_OctetsDataReader_read_w_condition except it accesses samples via the DDS_OctetsDataReader_take operation.
DDS_ReturnCode_t DDS_OctetsDataReader_read_next_sample | ( | DDS_OctetsDataReader * | self, |
DDS_Octets * | received_data, | ||
struct DDS_SampleInfo * | sample_info | ||
) |
Copies the next not-previously-accessed data value from the DDS_DataReader.
DDS_ReturnCode_t DDS_OctetsDataReader_take_next_sample | ( | DDS_OctetsDataReader * | self, |
DDS_Octets * | received_data, | ||
struct DDS_SampleInfo * | sample_info | ||
) |
Copies the next not-previously-accessed data value from the DDS_DataReader.
DDS_ReturnCode_t DDS_OctetsDataReader_return_loan | ( | DDS_OctetsDataReader * | self, |
struct DDS_OctetsSeq * | received_data, | ||
struct DDS_SampleInfoSeq * | info_seq | ||
) |
Indicates to the DDS_DataReader that the application is done accessing the collection of received_data
and info_seq
obtained by some earlier invocation of read or take on the DDS_DataReader.
int DDS_Octets::length |
Number of octets to serialize.
unsigned char* DDS_Octets::value |
DDS_Octets array value.