Skip to main content

Name

ec_message_context_get — Returns a pointer to the value of the key in the appropriate dictionary, otherwise it returns an empty string

Synopsis

#include "ec_message.h"

| const char * **ec_message_context_get** ( | m, |   | |   | w, |   | |   | k); |   |

ec_message * <var class="pdparam">m</var>; int <var class="pdparam">w</var>; const char * <var class="pdparam">k</var>;

Description

Returns a pointer to the value for the key in the appropriate dictionary type, otherwise it returns an empty string.

Parameters

m

The message. For more information about this struct see “ec_message”.

w

The context type, either ECMESS_CTX_CONN or ECMESS_CTX_MESS.

k

The key associated with the context variable value.

Return Value

The value of the context variable or an empty string.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?