X.25 Communications Library (libx25s.a)
int x25_send(conn_id, cb_data) int conn_id; struct cb_data_struct *cb_data;
The x25_send subroutine transfers the data packet to the adapter for transmission across the network. Control is returned to the calling application when the device driver indicates successful data transfer to the adapter. If there is no room for the packet in adapter memory, the x25_send subroutine waits until memory becomes available. The amount of memory available depends on the transmit packet window and the transmit packet size. More memory generally becomes available after the X.25 network sends a Receiver Ready signal for the connection identifier.
conn_id | Contains the connection identifier of the call. |
cb_data | Specifies a pointer to data structure, cb_data_struct. |
If successful, the x25_send subroutine returns a value of 0. If an error occurs, the x25_send 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:
This subroutine is part of X.25 Application in Base Operating System (BOS) Extensions 2.
The x25_ack subroutine, x25_receive subroutine.
Processing Calls with the X.25 API, Using the X.25 Structures and Flags, in AIX Version 4.3 Communications Programming Concepts.