IP_NserveReattach

IP_NserveReattach — closes and renews all task connections and queues.

Syntax

#include <cogent.h>

int IP_NserveReattach(IP_Task* task);

Arguments

task

A valid task pointer.

Returns

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

Description

This function will close all connections and queues associated with the task, and will attempt to look up the task name again on nserve, replacing any new information that it acquires. This is useful if the pointer to the task structure is widely used in an application, and the programmer wishes to re-locate a dead task without having to visit all uses of the task pointer.

See Also

The Cascade NameServer, Cascade NameServer Functions, nserve, IP_NserveClose