Accepts an incoming call.
X.25 Communications Library (libx25s.a)
int x25_call_accept(conn_id, cb_call, ctr_id) int conn_id; struct cb_call_struct *cb_call; int ctr_id;
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.
|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.|
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.
On failure, the x25_errno global value is set to one of the following values:
If the x25_errno global variable is set to the X25SYSERR value, the errno global variable is set to one of the following values:
Accept an incoming call: example program svcrcv.
This subroutine is part of X.25 Application in Base Operating System (BOS) Extensions 2.
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.