UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches

Get some system dependent information. More...

#include <UPnPsdk/pthread.hpp>
#include <md5.hpp>
+ Include dependency graph for sysdep.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uuid_node_t
 node ID More...
 

Typedefs

typedef uint64_t uuid_time_t
 UUID time.
 

Functions

void get_ieee_node_identifier (uuid_node_t *node)
 System dependent call to get IEEE node identifier.
 
void get_system_time (uuid_time_t *uuid_time)
 System dependent call to get the current system time.
 
void get_random_info (unsigned char seed[16])
 Get random information.
 

Variables

constexpr int UUIDS_PER_TICK {1024}
 set the following to the number of 100ns ticks of the actual resolution of your system's clock
 

Detailed Description

Get some system dependent information.

Definition in file sysdep.hpp.


Class Documentation

◆ uuid_node_t

struct uuid_node_t

node ID

Definition at line 51 of file sysdep.hpp.

Class Members
char nodeID[6] node ID

Typedef Documentation

◆ uuid_time_t

typedef uint64_t uuid_time_t

UUID time.

Definition at line 48 of file sysdep.hpp.

Function Documentation

◆ get_ieee_node_identifier()

void get_ieee_node_identifier ( uuid_node_t node)

System dependent call to get IEEE node identifier.

This sample implementation generates a random node ID.

Definition at line 41 of file sysdep.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_system_time()

void get_system_time ( uuid_time_t uuid_time)

System dependent call to get the current system time.

Returned as 100ns ticks since Oct 15, 1582, but resolution may be less than 100ns.

Definition at line 57 of file sysdep.cpp.

+ Here is the caller graph for this function:

◆ get_random_info()

void get_random_info ( unsigned char  seed[16])

Get random information.

Todo:
Optimize function. –Ingo

Definition at line 74 of file sysdep.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ UUIDS_PER_TICK

constexpr int UUIDS_PER_TICK {1024}
inlineconstexpr

set the following to the number of 100ns ticks of the actual resolution of your system's clock

Definition at line 45 of file sysdep.hpp.