Truxton message participant get message id
Jump to navigation
Jump to search
This retrieves the globally unique identifier for the message this participant came from.
Syntax
void truxton_message_participant_get_message_id( uint64_t participant_handle, char * buffer, uint64_t buffer_size );
Parameters
participant_handle
This handle comes from calling truxton_message_participant_create().
buffer
The address of where to put the string.
buffer_size
The number of bytes available in the buffer.
Sample
void dump(uint64_t participant_handle)
{
char string_value[512];
uint64_t integer = 0;
truxton_message_participant_get_id( participant_handle, string_value, sizeof(string_value) );
printf( "ID: %s\n", string_value );
integer_value = truxton_message_participant_get_combined_id( participant_handle );
printf( "Combined ID: %" PRIu64 "\n", integer_value );
truxton_message_participant_get_combined_guid( participant_handle, string_value, sizeof(string_value) );
printf( "Combined GUID: %s\n", string_value );
truxton_message_participant_get_account( participant_handle, string_value, sizeof(string_value) );
printf( "Account: %s\n", string_value );
truxton_message_participant_get_file_id( participant_handle, string_value, sizeof(string_value) );
printf( "File ID: %s\n", string_value );
truxton_message_participant_get_media_id( participant_handle, string_value, sizeof(string_value) );
printf( "Media ID: %s\n", string_value );
truxton_message_participant_get_message_address_id( participant_handle, string_value, sizeof(string_value) );
printf( "Message Address ID: %s\n", string_value );
truxton_message_participant_get_message_id( participant_handle, string_value, sizeof(string_value) );
printf( "Message ID: %s\n", string_value );
truxton_message_participant_get_server( participant_handle, string_value, sizeof(string_value) );
printf( "Server: %s\n", string_value );
truxton_message_participant_get_name( participant_handle, string_value, sizeof(string_value) );
printf( "Name: %s\n", string_value );
integer_value = truxton_message_participant_get_type( participant_handle );
printf( "Type: %" PRIu64 "\n", integer_value );
}