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

x25_ack Subroutine

Purpose

Acknowledges data received with the D-bit set.

Library

X.25 Communications Library (libx25s.a)

C Syntax

int x25_ack(conn_id)
int conn_id;

Description

The x25_ack subroutine sends an acknowledgment for the data packet most recently received with the D-bit set for the call specified by the conn_id parameter.

Control is returned to the calling application when the adapter has queued the packet for transmission.

Parameters

conn_id Connection identifier of the call.

Return Values

If successful, the x25_ack subroutine returns a value of 0. If an error occurs, the x25_ack 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 values:

X25BADCONNID

X25NOACKREQ

X25NOCARD

X25NOLINK

X25NOTINIT

X25PROTOCOL

X25SYSERR

X25RESETCLEAR

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:

ENOSPC

EINTR

EIO

Examples

Acknowledge data received with the D-bit set: example program svcrcv.

Implementation Specifics

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

Related Information

The x25_send subroutine.

Processing Calls with the X.25 API, Using the X.25 Structures and Flags in AIX Version 4.3 Communications Programming Concepts.


[ Previous | Next | Contents | Search ]