IP_TaskSetDomain

IP_TaskSetDomain — sets or changes a task's domain name.

Syntax

#include <cogent.h>
void IP_TaskSetDomain(IP_Task*  task,
 char*  domain);

Arguments

task

A task.

domain

A domain name, or NULL.

Returns

None.

Description

This function sets or changes the domain name for the task. If the task has an existing domain name, then memory associated with that domain name is freed and a new domain name is allocated. If domain is NULL, then the default domain name is used.

See Also

Task Structures, Domains in the Cascade NameServer chapter, IP_TaskDefaultDomain, IP_TaskSetQname