Mistake on this page? Email us
Default message id generator library

Files

file  default_message_id_generator.h
 Default message ID generator for JSON-RPC messages.
 

Typedefs

typedef char *(* generate_msg_id) ()
 A prototype of the ID generation function. More...
 

Functions

char * edge_default_generate_msg_id ()
 Default message generation function. More...
 

Detailed Description

Typedef Documentation

typedef char*(* generate_msg_id) ()

A prototype of the ID generation function.

The function must provide unique and non-clashing IDs for the session.

Returns
A unique message ID.

Function Documentation

char* edge_default_generate_msg_id ( )

Default message generation function.

This function implements a default message generator function. The prototype definition of the function is generate_msg_id.

Returns
Numeric ascending message IDs are generated and returned as a character array.
The character array is NULL terminated.
If the allocation fails, NULL is returned.