LinePar structure

typedef struct _LinePar
 {
 HOBJ          lpID;          // Line Id
 char          lpName[65];    // Line name
 char          lpDevice[201]; // Device
 ExtKomParams *ExtKomPar;     // Parameters for ExtKom link type
 FileIOParams *FileIOPar;     // Parameters for File I/O link type
 TCPIPParams  *TCPIPPar;      // Parameters for TCP/IP link type
 void         *lpLnVarPar;    // Pointer to optional parameters
 KomUniVal     lpLnVal;       // value
 } LinePar;

Structure LinePar defines the parameters of object of Line type. All the parameters are read-only, except lpLnVarPar!

lpID

Line ID (HOBJ).

lpName

Line name.

lpDevice

Line device.

ExtKomPar

typedef struct _ExtKomParams
 {
 char lpRun_Path[81];
 char lpWork_Path[81];
 char lpParams[81];
 } ExtKomParams;

Pointer to ExtKomParams structure with parameters of ExtKom communication link.

FileIOPar

typedef struct _FileIOParams
 {
 char lpInputFile[81];
 char lpArchiveDir[81];
 } FileIOParams;

Pointer to FileIOParams sturcture with parameters of File I/O communication link.

TCPIPPar

typedef struct _TCPIPParams
 {
 char lpIPHost[201];
 unsigned int lpIPPort;
 } TCPIPParams;

Pointer TCPIPParams structure with parameters of TCP/IP-TCP link.

lpLnVarPar

Address to parameters depending on the communication link category. A programmer can place here a pointer to own structure with auxiliary parameters for the link.

lpLnVal

Address to a structure KomUniVal (line value).

Napíšte komentár