Skip to main content

ec_message_assign_domain_by_name

Last updated March 2020

Name

ec_message_assign_domain_by_name — Assign the domain field of an ec_message based on the domain name string passed in as an argument

Synopsis

#include "ec_message.h"

| domain_record * **ec_message_assign_domain_by_name** ( | mess, |   | |   | domain_name); |   |

ec_message * <var class="pdparam">mess</var>; const char * <var class="pdparam">domain_name</var>;

Description

Modify the domain field of an ec_message based on the domain name string passed in as an argument.

Note

You MUST use ec_message_assign_domain or ec_message_assign_domain_by_name to change the domain of an ec_message or you will skew the binding/domain stats.

Parameters

mess

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”

domain_name

A constant string (pointer to const char).

Return Values

This function returns a pointer to a domain_record. This is the address of a domain_record in the list of currently used domains. For documentation of this data structure see “domain_record”

Threading

It is legal to call this function in the Scheduler thread.

See Also

Was this page helpful?