|
RTI Connext Micro C API Version 4.3.0
|
Data Structures | |
| struct | UDP_Transform |
| Base-class for instances of a transformation library. More... | |
| struct | UDP_TransformProperty |
| Properties for the transformation library. More... | |
| struct | UDP_TransformRule |
| Transformation Rule. More... | |
| struct | UDP_TransformRuleSeq |
| <<eXtension>> Declares IDL sequence<UDP_TransformRule> More... | |
Macros | |
| #define | UDP_TransformProperty_INITIALIZER |
| UDP_TransformProperty initializer. | |
| #define | UDP_TransformRuleSeq_INITIALIZER REDA_DEFINE_SEQUENCE_INITIALIZER(struct UDP_TransformRule) |
| UDP_TransformRuleSeq initializer. | |
Typedefs | |
| typedef struct UDP_Transform | UDP_Transform_T |
| Base-class for instances of a transformation library. | |
Variables | |
| RTI_INT32 | UDP_TransformProperty::max_send_message_size |
| The maximum size of messages that will be sent through this transformation, in bytes. | |
| RTI_INT32 | UDP_TransformProperty::max_receive_message_size |
| The maximum size of messages that will be received through this transformation, in bytes. | |
| UDP_TransformI_create_destination_transform | UDP_TransformI::create_destination_transform |
| Method to create a new destination transform. | |
| UDP_TransformI_create_source_transform | UDP_TransformI::create_source_transform |
| Method to create a new source transform. | |
| UDP_TransformI_transform_source | UDP_TransformI::transform_source |
| Method to transform a payload from a source. | |
| UDP_TransformI_transform_destination | UDP_TransformI::transform_destination |
| Method to transform a payload to a destination. | |
| UDP_TransformI_delete_destination_transform | UDP_TransformI::delete_destination_transform |
| Method to delete a destination transform. | |
| UDP_TransformI_delete_source_transform | UDP_TransformI::delete_source_transform |
| Method to delete a source transform. | |
| struct NETIO_Address | UDP_TransformRule::address |
| The address the rule applies to. | |
| struct NETIO_Netmask | UDP_TransformRule::netmask |
| The netmask to apply to the address. | |
| RT_ComponentFactoryId_T | UDP_TransformRule::transformation |
| The transformation to apply to a matching address after the netmask has been applied. | |
| void * | UDP_TransformRule::user_data |
| An opaque user_data pointer passed to the transformation function. | |
<<eXtension>> <<cert>> The UDP transform API enables custom transformation of UDP incoming and outgoing UDP datagrams. Please refer to User Manual for the User Manual and how to use the UDP transforms.
| #define UDP_TransformProperty_INITIALIZER |
UDP_TransformProperty initializer.
| #define UDP_TransformRuleSeq_INITIALIZER REDA_DEFINE_SEQUENCE_INITIALIZER(struct UDP_TransformRule) |
UDP_TransformRuleSeq initializer.
| typedef struct UDP_Transform UDP_Transform_T |
Base-class for instances of a transformation library.
| RTI_INT32 UDP_TransformProperty::max_send_message_size |
The maximum size of messages that will be sent through this transformation, in bytes.
| RTI_INT32 UDP_TransformProperty::max_receive_message_size |
The maximum size of messages that will be received through this transformation, in bytes.
| UDP_TransformI_create_destination_transform UDP_TransformI::create_destination_transform |
Method to create a new destination transform.
Initialize a transformation context for outgoing packets to a specific destination address.
| [in] | self | UDP Transform instance that creates the transformation. |
| [out] | context | Pointer to a transformation context. |
| [in] | destination | Destination address for the transformation. |
| [in] | user_data | The user_data the rule was asserted with. |
| [in] | property | UDP transform specific properties |
| [out] | ec | User defined error code. |
| UDP_TransformI_create_source_transform UDP_TransformI::create_source_transform |
Method to create a new source transform.
Initialize a transformation context for incoming packets from a specific source address.
This method is called once per source when the first packet is received from that source.
| [in] | self | UDP Transform instance that creates the transformation. |
| [out] | context | Pointer to a transformation context. |
| [in] | source | Source address for the transformation. |
| [in] | netmask | The netmask from the rule that matched. |
| [in] | user_data | The user_data for the asserted rule. |
| [in] | property | UDP transform specific properties |
| [out] | ec | User defined error code. |
| UDP_TransformI_transform_source UDP_TransformI::transform_source |
Method to transform a payload from a source.
Transform an incoming packet received from a source address.
This method is called for every incoming packet that matches a source transformation rule. The implementation should transform the input packet and provide the result in the output packet.
| [in] | self | UDP_Transform_T that performs the transformation. |
| [in] | context | Reference to context created by create_source_transform(). |
| [in] | source | Source address for the transformation. |
| [in] | in_packet | The NETIO packet to transform. This packet is owned by the caller. |
| [out] | out_packet | The transformed NETIO packet. |
| [out] | ec | User defined error code. |
| UDP_TransformI_transform_destination UDP_TransformI::transform_destination |
Method to transform a payload to a destination.
Transform an outgoing packet being sent to a destination address.
This method is called for every outgoing packet that matches a destination transformation rule. The implementation should transform the input packet and provide the result in the output packet.
| [in] | self | UDP_Transform_T that performs the transformation. |
| [in] | context | Reference to context created by create_destination_transform(). |
| [in] | destination | Destination address for the transformation. |
| [in] | in_packet | The NETIO packet to transform. This packet is owned by the caller. |
| [out] | out_packet | The transformed NETIO packet. |
| [out] | ec | User defined error code. |
| UDP_TransformI_delete_destination_transform UDP_TransformI::delete_destination_transform |
Method to delete a destination transform.
Clean up and destroy a destination transformation context.
This method is called when a destination route is removed or when the transform is no longer needed. The implementation should free all resources associated with the context.
| [in] | self | UDP Transform instance that created the transformation. |
| [in,out] | context | Pointer to the transformation context to delete. |
| [in] | destination | Destination address for the transformation. |
| [in] | netmask | The netmask from the rule that matched. |
| [out] | ec | User defined error code. |
| UDP_TransformI_delete_source_transform UDP_TransformI::delete_source_transform |
Method to delete a source transform.
Clean up and destroy a source transformation context.
| [in] | self | UDP Transform instance that created the transformation. |
| [in,out] | context | Pointer to the transformation context to delete. |
| [in] | source | Source address for the transformation. |
| [in] | netmask | The netmask from the rule that matched. |
| [out] | ec | User defined error code. Set to 0 on success, non-zero on failure. Even if this method returns RTI_FALSE, the context will be considered deleted. |
| struct NETIO_Address UDP_TransformRule::address |
The address the rule applies to.
The network address for this transformation rule.
This address is combined with the netmask to determine which network addresses match this rule. The address should represent the network or host being matched.
| struct NETIO_Netmask UDP_TransformRule::netmask |
The netmask to apply to the address.
The network mask determining the range of addresses matched by this rule.
| RT_ComponentFactoryId_T UDP_TransformRule::transformation |
The transformation to apply to a matching address after the netmask has been applied.
The name of the transformation to use for this rule.
This must match the name used when registering the transformation factory with RT_Registry_register(). The plugin will look up this name and create an instance of the corresponding transform.
Example:
| void* UDP_TransformRule::user_data |
An opaque user_data pointer passed to the transformation function.
Optional user-defined data passed to transformation operations.
This pointer is provided to create_*_transform() methods and can be used to pass configuration data, keys, or other context-specific information to the transformation.