ec_message_context_exists
Name
ec_message_context_exists — Determines whether a provided key exists in the connection context or message context dictionary
Synopsis
#include "ec_message.h"
| int **ec_message_context_exists** (
| m, | |
| | w, | |
| | k)
; | |
ec_message * <var class="pdparam">m</var>
;
int <var class="pdparam">w</var>
;
const char * <var class="pdparam">k</var>
;
Description
Determine whether a key/value pair exists in either the message context or connection context dictionary.
- m
-
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
- w
-
An int. Valid values are either ECMESS_CTX_CONN or ECMESS_CTX_MESS.
- k
-
A constant string (char *) which is the dictionary key.
Returns 1 if the provided key exists in the appropriate dictionary and 0 otherwise.
It is legal to call this function in any thread.