(Page 3 of 35 in this chapter)
TxX25FileDefine
Description
- Sets up required parameters in an X.25 file definition packet.
Prototype
- short TxX25FileDefine (TXMNGPKT *req,
char *filename,
char *CallingNUA,
char *CalledNUA,
unsigned short type,
unsigned short LCN,
char *Link)
- req Pointer to packet to be set.
- filename Pointer to X.25 file name (null term ASCII string)
- CallingNUA Pointer to 1-16 digits (null term ASCII string). Required if SVCI.
- CalledNUA Pointer to 1-16 digits (null term ASCII string) Required if SVCO
- type PVC | SVCI | SVCO (
#define).
- LCN LCN to use with PVC (required and used with PVC only).
- Link Pointer to link name used if PVC or SVO with Bypass (null term ASCII string).
Return Values
- TX API completion code
Details
- All X.25 File required fields are set to their values specified in the parameter list. All other values remain at their previous (default) values. TxX25FileDefine assumes that the packet is already a properly initialized Define File packet.
- Applications should call TxX25FileDefault some time prior to calling TxX25FileDefine to assure that the packet contains all the proper default values. Applications should call TxX25FileDefine when a packet is to be used to create a new X.25 File with a unique name.
- The type parameter is set using
#define statements in the file x25type.h; the values are TXX25_XFILE_SVCO, TXX25_XFILE_SVCI, and TXX25_XFILE_PVC 2. An SVCO with the Bypass option is specified by link name being defined. This link name as well as the LCN must be defined when a PVC is defined.
See Also
- TxX25FileDefault
(Page 3 of 35 in this chapter)
tech_support@nmss.com
Copyright © 1998, Natural MicroSystems, Inc. All rights
reserved.