IP_NservePackTaskInfo

IP_NservePackTaskInfo — makes a Lisp-parseable version of task information.

Syntax

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

Arguments

buffer
A buffer used to hold the packed information.
maxlen
The maximum length of buffer.
prefix
A string to be prepended to the packed information.
name
The task name.
domain
The task's domain name, or NULL.
qname
The task's queue name, or NULL.
nid
The task's node ID.
pid
The task's process ID.
chid
The task's input channel ID.

Returns

0 on success. -1 on failure and errno is set:

  • ENOMEM - the buffer size was too small to hold the result.

Description

This function creates a Lisp-parseable representation of the task information, suitable for transmission to nserve and associated library functions. If domain is NULL, the default domain is used. If qname is NULL, then a blank queue name is used. The nid, pid and chid parameters must all be specified.

See Also

The Cascade NameServer, Cascade NameServer Functions