IP_NserveAdd

IP_NserveAdd — adds an entry to nserve.

Syntax

#include <cogent.h>
int IP_NserveAdd(char*  name,
 char*  domain,
 char*  qname,
 int  nid,
 int  pid,
 int  chid);

Arguments

name

A task name.

domain

A domain name, or NULL.

qname

A queue name, or NULL.

nid

A node ID.

pid

A process ID.

chid

A channel ID.

Returns

0 on success, or -1 on failure and errno is set.

Description

This function adds an entry to nserve, associating the name with domain, qname, nid, pid and chid.

If domain is NULL, then the default domain is used. If qname is NULL, then a blank queue name is used. The actual nid/pid/chid combination need not actually exist. The resulting nserve entry will be removed when the process that created it exits. A single process may add any number of names.

See Also

The Cascade NameServer, Cascade NameServer Functions, nserve, IP_NserveRemove