Truxton communication get received

From truxwiki.com
Jump to navigation Jump to search

This retrieves when the message was received. This corresponds to the [Received] column of the [Message] table.

Syntax

uint64_t truxton_communication_get_received( uint64_t communication_handle );

Parameters

communication_handle

The handle created by the truxton_communication_create call.

Return value

The received date of the message in FILETIME ticks.

Sample

void dump_received( uint64_t communication_handle )
{
   uint64_t time_value = truxton_communication_get_received( communication_handle );
   printf( "Received: %" PRIu64 "\n", time_value );
}

Note, the PRIu64 in the sample code above is the new standard way of formatting a 64-bit integer in C. Over the years, different compilers on different operating systems used different format specifiers for things, these PRI macros, along with some tricky string concatenation the compilers perform for you, allow you to maintain a single code base without a bunch of macro magic.