[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


RSiClose Subroutine

Purpose

Terminates the RSI interface for a remote host connection.

Library

RSI Library (libSpmi.a)

Syntax

#include sys/Rsi.h

void RSiClose(rhandle)
RSiHandle rhandle;

Description

The RSiClose subroutine is responsible for:

  1. Removing the data-consumer program as a known data consumer on a particular host. This is done by sending a going_down packet to the host.
  2. Marking the RSI handle as not active.
  3. Releasing all memory allocated in connection with the RSI handle.
  4. Terminating the RSI interface for a remote host.

A successful RSiOpen (RSiOpen Subroutine) subroutine creates tables on the remote host it was issued against. Therefore, a data consumer program that has issued successful RSiOpen subroutine calls should issue an RSiClose (RSiClose Subroutine) subroutine call for each RSiOpen call before the program exits so that the tables in the remote xmservd daemon can be released.

Parameters

rhandleMust be an RSiHandle, which was previously initialized by the RSiOpen subroutine.

The macro RSiIsOpen can be used to test whether an RSI handle is open. It takes an RSiHandle as argument and returns true (1) if the handle is open, otherwise false (0).

Implementation Specifics

This subroutine is part of the Performance Toolbox for AIX licensed product.

Files

/usr/include/sys/Rsi.hDeclares the subroutines, data structures, handles, and macros that an application program can use to access the RSI.

Related Information

For related information, see:


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]