[ Previous | Next | Contents | Search ]
AIXLink/X.25 1.1 for AIX: Guide and Reference

x25_reset_confirm Subroutine

Purpose

Confirms that a reset-indication packet has been received.

Library

X.25 Communications Library (libx25s.a)

C Syntax

int x25_reset_confirm(conn_id)
int conn_id;

Description

The x25_reset_confirm subroutine sends a reset-confirmation packet. After the reset-indication packet has been received by the x25_receive subroutine, no further data can be sent or received until the reset-confirmation has been sent. Any data currently in transmission is discarded with an appropriate return code.

Parameters

conn_id Contains the Connection identifier of the call.

Return Values

If successful, the x25_reset_confirm subroutine returns a value of 0. If an error occurs, the x25_reset_confirm subroutine returns a value of -1 and sets the x25_errno global variable to one of the error codes shown below.

Error Codes

On failure, the x25_errno global variable is set to one of the following:

X25BADCONNID

X25NOACKREQ

X25NOCARD

X25NOLINK

X25NOTINIT

X25PROTOCOL

X25RESETCLEAR

X25SYSERR

X25TRUNCTX

If the x25_errno global variable is set to a X25SYSERR value, the errno global variable is set to one of the following values:

EINTR

EIO

ENOSPC

Examples

The example program pvcrcv illustrates how to confirm that a reset indication has arrived.

Implementation Specifics

This subroutine is part of X.25 Application in Base Operating System (BOS) Extensions 2.

Related Information

The x25_reset subroutine.

Processing Calls with the X.25 API in AIX Version 4.3 Communications Programming Concepts.


[ Previous | Next | Contents | Search ]