ec_message_context_set — Store a key/value pair in the appropriate context dictionary
int **ec_message_context_set** ( | m, | |
| | w, | |
| | k, | |
| | v
); | |
Store a key/value pair in the appropriate context dictionary, either ECMESS_CTX_CONN or ECMESS_CTX_MESS
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
An integer. Valid values are either ECMESS_CTX_CONN or ECMESS_CTX_MESS.
A constant string (char *) which is the dictionary key.
A constant string (char *) which is the dictionary value.
Returns 1 if the key/value pair was successfully added to the appropriate dictionary. Returns 0 if you pass in a NULL value of k or v. Also returns 0 if the key/value pair already existed in the appropriate dictionary.
It is legal to call this function in any thread.