IP_NserveReattach

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_NserveReattach`

`IP_NserveReattach` -- closes and renews all task connections and queues.

## Syntax

``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`

Prev | Home | Next
`IP_NserveQueryNames` | Up | `IP_NserveRemove`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.