intro(3X25) — Subroutines
Digital
NAME
intro − introduction to X.25 and X.29 library routines
DESCRIPTION
The X.25 library, libx25, contains both X.25 routines and X.29 routines. The X.25 routines provide a convenient method of writing applications to transfer data over an X.25 network. The X.29 routines provide a method of controlling the operation of the X.29 session for an incoming X.29 call.
The X.25 library contains routines to perform the following tasks:
•Establish a communication endpoint, or port
•Obtain the status of an X.25 port
•Accept an incoming X.25 call
•Make an outgoing X.25 call
•Transmit and receive X.25 data
•Transmit and receive interrupt data
•Reset an X.25 connection
•Clear an X.25 call
•Read and set PAD parameters on a remote PAD
•Control the operation of the X.29 Server
When you call X.25 or X.29 routines in a C program, compile the program with the -lx25 flag to include libx25, as shown:
% cc -o prog prog.c -lx25
X.25 Routines
| X25AcceptCall | Accepts an incoming X.25 call |
| X25BindFilter | Associates a filter with an X.25 listener |
| X25ClearCall | Clears an X.25 call |
| X25ClosePort | Disposes of an X.25 port |
| X25CreateListener | Creates an X.25 listener |
| X25Decode | Decodes an item from an Encoded Parameter List |
| X25DeleteListener | Disposes of an X.25 listener |
| X25Encode | Encodes items into an Encoded Parameter List |
| X25GetErrorText | Returns the error message for an X.25 error |
| X25GetItemList | Lists item codes in an Encoded Parameter List |
| X25GetPortStatus | Returns the current port status information |
| X25Listen | Listens for incoming X.25 calls |
| X25MakeCall | Initiates an outgoing X.25 call |
| X25OpenPort | Creates an X.25 port |
| X25PrintError | Prints the error message for an X.25 error |
| X25ReadAccept | Obtains negotiated outgoing call details |
| X25ReadCallDetails | Obtains incoming call details |
| X25ReadClear | Reads clear information for calls cleared by remote DTE |
| X25ReadClearConf | Reads clear confirmation received from remote DTE |
| X25ReadData | Reads data from an X.25 port in Automatic Mode |
| X25ReadDataQM | Reads data from an X.25 port in Manual Mode |
| X25ReadOOB | Reads an interrupt or reset message from an X.25 port |
| X25RematchCall | Passes an incoming call back for rematching |
| X25SendData | Transmits data to an X.25 port in Automatic Mode |
| X25SendDataQM | Transmits data to an X.25 port in Manual Mode |
| X25SendInterrupt | Transmits an X.25 interrupt |
| X25SendInterruptConf | Confirms receipt of an X.25 interrupt |
| X25SendReset | Transmits an X.25 reset or confirms receipt of an X.25 reset |
| X25SetIOMode | Sets an X.25 port to blocking or non-blocking mode |
| X25UnbindFilter | Disassociates a filter from an X.25 listener |
| X25WaitForEvent | Waits for an event to occur on one or more X.25 ports |
X.29 Routines
| X29Break | Sends a break message to the remote PAD |
| X29GetAction | Reads the action to be performed when a specified event occurs |
| X29GetHoldTime | Reads the value of the local holdback timer |
| X29GetParameters | Reads PAD parameters from the remote PAD |
| X29InviteClear | Invites the remote PAD to clear the call |
| X29SetAction | Sets the action to be performed on receipt of an X.29 event |
| X29SetHoldTime | Sets the value of the local holdback timer |
| X29SetParameters | Sets PAD parameters on the remote PAD |
Header Files
| x25.h | contains constants, error codes, and structures for X.25 programs |
| x29.h | contains constants, error codes, and structures for X.29 programs |
RELATED INFORMATION
Functions: X25AcceptCall(3X25), X25BindFilter(3X25), X25ClearCall(3X25), X25ClosePort(3X25), X25CreateListener(3X25), X25Decode(3X25), X25DeleteListener(3X25), X25Encode(3X25), X25GetErrorText(3X25), X25GetItemList(3X25), X25GetPortStatus(3X25), X25Listen(3X25), X25MakeCall(3X25), X25OpenPort(3X25), X25PrintError(3X25), X25ReadAccept(3X25), X25ReadCallDetails(3X25), X25ReadClear(3X25), X25ReadClearConf(3X25), X25ReadData(3X25), X25ReadDataQM(3X25), X25ReadOOB(3X25), X25RematchCall(3X25), X25SendData(3X25), X25SendDataQM(3X25), X25SendInterrupt(3X25), X25SendInterruptConf(3X25), X25SendReset(3X25), X25SetIOMode(3X25), X25UnbindFilter(3X25), X25WaitForEvent(3X25), X29Break(3X25), X29GetAction(3X25), X29GetHoldTime(3X25), X29GetParameters(3X25), X29InviteClear(3X25), X29SetAction(3X25), X29SetHoldTime(3X25), X29SetParameters(3X25).
X.25 for Digital UNIX − Programmer’s Reference Manual.