|
typedef struct UDP_Transform | UDP_Transform_T |
| Base-class for instances of a transformation library.
|
|
typedef RTI_BOOL(* | UDP_TransformI_create_destination_transform) (UDP_Transform_T *const self, void **const context, const struct NETIO_Address *const destination, const struct NETIO_Netmask *const netmask, void *user_data, const struct UDP_TransformProperty *const property, RTI_INT32 *const ec) |
| Method to create a new destination transform.
|
|
typedef RTI_BOOL(* | UDP_TransformI_create_source_transform) (UDP_Transform_T *const self, void **const context, const struct NETIO_Address *const source, const struct NETIO_Netmask *const netmask, void *user_data, const struct UDP_TransformProperty *const property, RTI_INT32 *const ec) |
| Method to create a new source transform.
|
|
typedef RTI_BOOL(* | UDP_TransformI_delete_destination_transform) (UDP_Transform_T *const self, void *context, const struct NETIO_Address *const destination, const struct NETIO_Netmask *const netmask, RTI_INT32 *const ec) |
| Method to delete a destination transform.
|
|
typedef RTI_BOOL(* | UDP_TransformI_delete_source_transform) (UDP_Transform_T *const self, void *context, const struct NETIO_Address *const source, const struct NETIO_Netmask *const netmask, RTI_INT32 *const ec) |
| Method to delete a source transform.
|
|
typedef RTI_BOOL(* | UDP_TransformI_transform_source) (UDP_Transform_T *const self, void *context, const struct NETIO_Address *const source, const NETIO_Packet_T *const in_packet, NETIO_Packet_T **out_packet, RTI_INT32 *const ec) |
| Method to transform a payload from a source.
|
|
typedef RTI_BOOL(* | UDP_TransformI_transform_destination) (UDP_Transform_T *const self, void *context, const struct NETIO_Address *const destination, const NETIO_Packet_T *const in_packet, NETIO_Packet_T **out_packet, RTI_INT32 *const ec) |
| Method to transform a payload to a destination.
|
|
<<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.
◆ UDP_TransformProperty_INITIALIZER
#define UDP_TransformProperty_INITIALIZER |
◆ UDP_TransformRuleSeq_INITIALIZER
#define UDP_TransformRuleSeq_INITIALIZER REDA_DEFINE_SEQUENCE_INITIALIZER(struct UDP_TransformRule) |
◆ UDP_Transform_T
Base-class for instances of a transformation library.
◆ UDP_TransformI_create_destination_transform
Method to create a new destination transform.
- Parameters
-
[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 |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ UDP_TransformI_create_source_transform
Method to create a new source transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | source | Source 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 |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ UDP_TransformI_delete_destination_transform
Method to delete a destination transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | destination | Destination address for the transformation |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ UDP_TransformI_delete_source_transform
Method to delete a source transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | source | Source address for the transformation |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ UDP_TransformI_transform_source
Method to transform a payload from a source.
- Parameters
-
[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 |
[out] | out_packet | The transformed NETIO packet |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ UDP_TransformI_transform_destination
Method to transform a payload to a destination.
- Parameters
-
[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 |
[out] | out_packet | The transformed NETIO packet |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ max_send_message_size
RTI_INT32 UDP_TransformProperty::max_send_message_size |
Max message size that will be sent.
◆ max_receive_message_size
RTI_INT32 UDP_TransformProperty::max_receive_message_size |
Max message size that will be received.
◆ create_destination_transform
Method to create a new destination transform.
- Parameters
-
[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 |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ create_source_transform
Method to create a new source transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | source | Source 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 |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ transform_source
Method to transform a payload from a source.
- Parameters
-
[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 |
[out] | out_packet | The transformed NETIO packet |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ transform_destination
Method to transform a payload to a destination.
- Parameters
-
[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 |
[out] | out_packet | The transformed NETIO packet |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ delete_destination_transform
Method to delete a destination transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | destination | Destination address for the transformation |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ delete_source_transform
Method to delete a source transform.
- Parameters
-
[in] | self | UDP Transform instance that creates the transformation |
[out] | context | Pointer to a transformation context |
[in] | source | Source address for the transformation |
[out] | ec | User defined error code |
- Returns
- RTI_TRUE on success, RTI_FALSE on failure
◆ address
The address the rule applies to.
◆ netmask
The netmask to apply to the address.
◆ transformation
RT_ComponentFactoryId_T UDP_TransformRule::transformation |
The transformation to apply to a matching address after the netmask has been applied.
◆ user_data
void* UDP_TransformRule::user_data |
An opaque user_data pointer passed to the transformation function.