USER_DATA
-
The USER_DATA policy applies to the domain participant, data reader, and data writer entities via the
user_data
member of their respective QoS structures. Below is the IDL related to the user data QoS policy:
struct UserDataQosPolicy {
sequence<octet> value;
};
-
By default, the
value
member is not set. It can be set to any sequence of octets which can be used to attach information to the created entity. The value of the USER_DATA policy is available in respective built-in topic data. The remote application can obtain the information via the built-in topic and use it for its own purposes. For example, the application could attach security credentials via the USER_DATA policy that can be used by the remote application to authenticate the source.