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

x25_call_accept Subroutine

Purpose

Accepts an incoming call.

Library

X.25 Communications Library (libx25s.a)

C Syntax

int x25_call_accept(conn_id, cb_call, ctr_id)
int conn_id;
struct cb_call_struct *cb_call;
int ctr_id;

Description

The x25_call_accept subroutine accepts an incoming call by generating and sending a call-accepted packet. It then returns control to the application. If the facilities requested are not allowed by the network, the call is cleared and an appropriate error code is made available in a later cb_clear_struct control block.

Parameters

conn_id Connection identifier of the call.
cb_call Pointer to the call control block, the cb_call_struct structure.
ctr_id Identifier of a counter allocated by a previous x25_ctr_get subroutine, to be associated with this call.

Return Values

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

Error Codes

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

X25BADCONNID

X25CALLED

X25CALLING

X25INVCTR

X25INVFAC

X25LONG

X25NOCARD

X25NOLINK

X25NOTINIT

X25PROTOCOL

X25RESETCLEAR

X25SYSERR

X25TRUNCTX

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

EINTR

EIO

ENOSPC

Examples

Accept an incoming call: example program svcrcv.

Implementation Specifics

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

Related Information

The x25_call subroutine, x25_call_clear 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 ]