⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pimlu62.h

📁 界面程序
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************  Resource States ****************************/
/*									 */
/* Resource states are IBM defined (see Chapter 4, Conversation States,  */
/* of the SNA Transaction Programmer's Reference Manual for LU Type 6.2).*/
/*									 */
/*************************************************************************/

#define stRESET			0	/* RESET			 */
#define stSEND			1	/* SEND				 */
#define stDEFER			2	/* DEFER			 */
#define stRECEIVE		3	/* RECEIVE			 */
#define stCONFIRM		4	/* CONFIRM			 */
#define stDEALLOCATE		7	/* DEALLOCATE			 */

/*************************************************************************/
/*******************  Conversation or Resource Types *********************/
/*************************************************************************/

#define rsBASIC_CONV		0	/* BASIC_CONVERSATION 		 */
#define rsMAPPED_CONV		1	/* MAPPED_CONVERSATION		 */


/*************************************************************************/
/************************  Synchronization Levels ************************/
/*************************************************************************/

#define syNONE			0	/* NONE				 */
#define syCONFIRM		1	/* CONFIRM			 */

/*************************************************************************/
/************************  ATTACH Parameters *****************************/
/*************************************************************************/

/*	Background or ForeGround 					 */
#define atFOREGND		0	/* ForeGround 			 */
#define atBKGND			1	/* BackGround 			 */

/*	LU 6.2 PIM Version 						 */
#define veNOSECURITY		0	/* No Allocate Security supported*/
#define veSECURITY		1	/* include Security capability   */
#define veNULLREC		2	/* NULL record support for mapped*/

/*	ShutDown Function 						 */
#define shNULLFUNC	   ( ( int(*) () ) 0 )	/* NULL Shutdown function*/

/*************************************************************************/
/************************  ALLOCATE Parameters ***************************/
/*************************************************************************/

/* TP TYPE */
#define tptUSER			0x040	/* USER TP 			 */
#define tptDIA			0x020	/* DIA 			  	 */
#define tptSNADS		0x021	/* SNADS 			 */

/* LUNAME TYPE */
#define lutOTHER		0	/* LU NAME (OTHER) 		 */
#define lutOWN			1	/* LU NAME (OWN)   		 */

/* RETURN_CONTROL */
#define	rcWHEN_ALLOC		0	/* WHEN_SESSION_ALLOCATED 	 */
#define rcDELAYED		1	/* DELAYED_ALLOCATION_PERMITTED  */
#define rcIMMEDIATE		2	/* IMMEDIATE			 */

/* SECURITY */
#define seNONE			0	/* No Security parameter to send */
#define seSAME			1	/* Use Already Verified security */
#define sePGM			2	/* Security provided by TP	 */

/*************************************************************************/
/***********************  DEALLOCATE Parameters **************************/
/*************************************************************************/

/* DEALLOCATE TYPE */
#define tySYNC_LEV		0	/* SYNC_LEVEL			 */
#define tyABEND_PROG		1	/* ABEND_PROG			 */
#define tyLOCAL			2	/* LOCAL			 */
#define tyFLUSH			3       /* FLUSH			 */
#define tyS_ABEND		4	/* ABEND_SVC			 */
#define tyT_ABEND		5	/* ABEND_TIMER			 */
#define tyCONFIRM               6       /* CONFIRM		         */
 
/* Mapped Conversation */
#define tyABND			1       /* ABEND		         */

/*************************************************************************/
/**********************  RECEIVE_AND_WAIT Parameters *********************/
/*************************************************************************/

/* FILL */
#define fiBUFFER		0	/* BUFFER			 */
#define fiLL			1	/* LL				 */

/* Maximum length of Receive_and_Wait and Send_Data */
#define bcMAXLEN	     4096	/* Maximum length of LENGTH      */
				        /* parameter for Basic Conv.     */

/*************************************************************************/
/**********************  SEND_ERROR Parameters ***************************/
/*************************************************************************/

/* ERROR TYPE */
#define etPROG			0	/* PROG				 */
#define etSVC			1	/* SVC				 */

/* Error Direction on the Send Error Call				 */
#define edRECEIVE		0
#define edSEND			1
#define edDONTCARE		2

/* Maximum length of Log-Data 						 */
#define ldMAXLEN		512     

/*************************************************************************/
/******************  PREPARE_TO_RECEIVE Parameters ***********************/
/*************************************************************************/

/* PREPARE_TO_RECEIVE TYPE */
#define ptSYNC_LEV		0	/* SYNC_LEVEL			 */
#define ptFLUSH	    		1	/* FLUSH			 */
#define ptCONFIRM	        2       /* CONFIRM		         */

/* LOCKS */
#define lkSHORT			0	/* SHORT			 */
#define lkLONG			1	/* LONG				 */

/*************************************************************************/
/************************   TEST Parameters   ****************************/
/*************************************************************************/

/* TEST Type */	
#define tePOST		1		/* Test POSTED condition         */
#define teRQ2SND	2		/* Test REQUEST_TO_SEND condition*/

/*************************************************************************/
/************************   NMVT Parameters   ****************************/
/*************************************************************************/
#define nmNMVT		0		/* NMVT				 */
#define nmALERT_SUB	1		/* ALERT subvector		 */
#define nmPDSTATS_SUB	2		/* PDSTAT subvector		 */

#define nmADD_SUB	0		/* Don't add NMVT subvectors	 */
#define nmNO_ADD_SUB	1		/* Add NMVT subvectors		 */

#define MAXIBMNAME	9		/* Maximum length of an IBM name.*/
					/* plus one for NULL.		 */
#define MAXSECPARM	11		/* Maximum length of Conversation
					   security information		 */

typedef char	IBMName[MAXIBMNAME];

#define TPNSIZE			65      /* 64 plus one for NULL.    	 */

/* LU6.2 PIM control block */
typedef struct 
{
	int Resource;			/* Currently only resource is   */
					/*   conversation id.	        */
	short ResState;	    		/* State of resource.		*/
	short RetCode;			/* Return Code after verb       */
					/* execution.			*/
	short RetSubCode;		/* Return Subcode after verb    */
					/* execution.			*/
	short RqToSndRcvd;		/* TRUE (1) if Request_To_Send  */
					/*    was received.		*/
	short WhatRcvd;			/* What was received.		*/

} LU62_PIM_CB;

/* GET_ATTRIBUTE structure */
typedef struct
{
	short LUNType;			/* OWN or OTHER			*/
	IBMName OwnFullLUName;		/* Own LU Name. 	        */
					/* RESERVED if LUNType is OWN.	*/
	IBMName PartLUName;		/* Session Partner LU Name.	*/
					/* RESERVED if LUNType is OWN.	*/
	IBMName PartFullLUName;		/* Partner Fully Qualified LU   */
					/*    Name.			*/
					/* RESERVED if LUNType is OWN.	*/
	IBMName ModeName;		/* Mode Name of session.	*/
					/* RESERVED if LUNType is OWN.	*/
	int SyncLevel;			/* Sychronization level of      */
					/*   conversation.		*/
	int TPType;			/* Type of TP.			*/
	char TPN[TPNSIZE];		/* TPN which started this TP.	*/
} LU62_Attrib;


/* DEFINE and Data Structure for PIP Array */
#ifndef MAXPIP
#define MAXPIP		10
#endif

#define PIPSIZE		64
#define MAPSIZE		64

typedef struct
{
    short	pipSize;		/* size of PIP subfield data only */
    char	pipData[PIPSIZE];
} LU62_PIP_Entry;

/* Data Format for PIP Variable */
typedef struct
{
    int nbrPIP;
    LU62_PIP_Entry data[MAXPIP];
} PIP_Var;


#endif /* _PIMLU62_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -