IP_NserveLookupName

IP_NserveLookupName — allocates and fills in a new task structure.

Syntax

#include <cogent.h>

IP_Task* IP_NserveLookupName(char* name);

Arguments

name

A task name.

Returns

A pointer to a task structure on success, or NULL on failure and errno is set.

Description

This function is a convenience wrapper on IP_NserveLookup that allocates a new IP_Task structure and then attempts to fill it. If the name is not registered with nserve, the new task structure is destroyed.

See Also

The Cascade NameServer, Cascade NameServer Functions, nserve, IP_NserveLookup, IP_NserveLookupID