DDS_ReturnCode_t DDS_KeyedStringDataWriter_write_w_timestamp_directed ( DDS_DataWriter dw, const DDS_KeyedString *data, const DDS_InstanceHandle_t h, const DDS_Time_t *time, DDS_InstanceHandleSeq *dests) { return (DDS_DataWriter_write_w_timestamp_directed (dw, data, h, time, dests)); }
DDS_ReturnCode_t DDS_BytesDataWriter_write_w_timestamp_directed ( DDS_DataWriter dw, const DDS_Bytes *data, const DDS_InstanceHandle_t h, const DDS_Time_t *time, DDS_InstanceHandleSeq *dests) { return (DDS_DataWriter_write_w_timestamp_directed (dw, (DDS_DataSeq *) data, h, time, dests)); }
DDS_ReturnCode_t DDS_StringDataWriter_write_w_timestamp_directed ( DDS_DataWriter dw, const char *data, const DDS_InstanceHandle_t h, const DDS_Time_t *time, DDS_InstanceHandleSeq *dests) { DDS_String s; s.value = (char *) data; return (DDS_DataWriter_write_w_timestamp_directed (dw, &s, h, time, dests)); }
void ctt_send (Domain_t *dp, Participant_t *pp, Endpoint_t *sep, Endpoint_t *dep, DDS_ParticipantVolatileSecureMessage *msg) { Writer_t *wp; DDS_Time_t time; DDS_InstanceHandleSeq handles; DDS_InstanceHandle_t h; int error; CTT_ASSERT (dp); memcpy (msg->message_identity.source_guid, dp->participant.p_guid_prefix.prefix, 12); msg->message_identity.sequence_number = psmp_seqnr++; if (pp) memcpy (msg->destination_participant_key, pp->p_guid_prefix.prefix, 12); if (dep) { memcpy (msg->destination_endpoint_key, pp->p_guid_prefix.prefix, 12); memcpy (msg->destination_endpoint_key + 12, dep->entity_id.id, 4); memcpy (msg->source_endpoint_key, dp->participant.p_guid_prefix.prefix, 12); memcpy (msg->source_endpoint_key + 12, sep->entity_id.id, 4); } CTT_TRACE ('T', msg); wp = (Writer_t *) dp->participant.p_builtin_ep [EPB_PARTICIPANT_VOL_SEC_W]; /* Send participant data. */ if (pp) { DDS_SEQ_INIT (handles); h = pp->p_builtin_ep [EPB_PARTICIPANT_VOL_SEC_R]->entity.handle; DDS_SEQ_LENGTH (handles) = DDS_SEQ_MAXIMUM (handles) = 1; DDS_SEQ_DATA (handles) = &h; sys_gettime ((Time_t *) &time); error = DDS_DataWriter_write_w_timestamp_directed (wp, msg, 0, &time, &handles); if (error) fatal_printf ("ctt_send: error sending crypto tokens message!"); } else { sys_gettime ((Time_t *) &time); error = DDS_DataWriter_write_w_timestamp (wp, msg, 0, &time); if (error) fatal_printf ("ctt_send: error sending crypto tokens message!"); } CTT_ASSERT (dp); }