Confirms that a reset-indication packet has been received.
X.25 Communications Library (libx25s.a)
int x25_reset_confirm(conn_id) int conn_id;
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.
conn_id | Contains the Connection identifier of the call. |
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.
On failure, the x25_errno global variable is set to one of the following:
If the x25_errno global variable is set to a X25SYSERR value, the errno global variable is set to one of the following values:
The example program pvcrcv illustrates how to confirm that a reset indication has arrived.
This subroutine is part of X.25 Application in Base Operating System (BOS) Extensions 2.
The x25_reset subroutine.
Processing Calls with the X.25 API in AIX Version 4.3 Communications Programming Concepts.