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

📄 pimcopr.h

📁 在SCO UNIX制定界面程序 可根据文件配制菜单,而不必修改源程序,非常方便
💻 H
📖 第 1 页 / 共 2 页
字号:
#define riSHS		3		/* Secondary HS reinititate	*/
#define riEITHER	4		/* Either may reinitiate	*/

/* define Drain type 							*/
    					/* tMode			*/
#define drRESET		0
#define drNO		1
#define drYES		2

/* define TP status 							*/
    					/* tTP 				*/
#define	tsENABLED	0		/* Enabled; may be allocated.	*/
#define tsTEMPDIS	1		/* Temp_Disabled; may retry	*/
#define tsPERMDIS	2		/* Perm_Disabled; may not retry */

/* define Conversation Type supported by TP (bit mask) 		 	*/
    					/* tTP				*/
#define ctMAPPED	0x01		/* MAPPED_CONVERSATION		*/
#define ctBASIC		0x02		/* BASIC_CONVERSATION		*/

/* define Security supported by TP 					*/
#define seNO		0		/* Security not supported 	*/
#define seYES		1		/* Security supported 		*/

/* define MC_FUNCTION Supported by TP (bit mask)			*/
    					/* tTP 				*/
#define mcFMHDATA	0x01		/* FMH_DATA			*/
#define mcMAPPING	0x02		/* DATA_MAPPING 		*/

/* define TP privilege (bit mask) 					*/
    					/* tTP 				*/
#define pvSESSCNTL	0x01		/* Session Control		*/
#define pvDISPLAY	0x02		/* DISPLAY			*/
#define pvDEFINE	0x04		/* DEFINE			*/
#define pvCNOS		0x08		/* CNOS verbs			*/
#define pvSTP		0x10		/* Attach to Service TP		*/
#define pvDELETE	0x20		/* DELETE			*/

/* define Session states 						*/
    					/* tSessInfo 			*/
#define scbRESET	0		/* Reset state			*/
#define scbPACTIVE	1		/* Pending Activation		*/
#define scbFREE		2		/* Session is Free		*/
#define scbBID		3		/* In Bidding Process		*/
#define scbINUSE	4		/* Session is in use		*/
#define scbDRAIN	5		/* In Drain Action		*/
#define scbPTERM	6		/* Pending Termination		*/

/* define Role of Half Session 						*/
    					/* tSessInfo 			*/
#define srPRIMARY	'P'		/* Primary LU in session 	*/
#define srSECONDARY	'S'	        /* Secondary LU in session 	*/

/* define Contention Polarity of Half Session 				*/
    					/* tSessInfo 			*/
#define scWINNER	'W'		/* Contention Winner in session */
#define scLOSER	    	'L'	        /* Contention Loser in session  */


/************************************************************************/
/*                       COPR Data Structure                            */
/*									*/
/************************************************************************/

/* Control Operator PIM control block */
typedef	struct
{
	int	RetCode;	/*  Return Code (also in errno).	*/
	int	RetSubCode;	/*  Return Sub-Code.			*/
	char    *COPRBuf;	/*  Pointer to buffer to hold display   */
	int	sCOPRBuf;	/*  Size of buffer.		        */
}
COPR_PIM_CB;

/* Data Format for Session ID */
typedef struct
{				/* Session IDs Consist of Four Parts:   */
	IBMName sidSv;		/*      Server Name			*/
	int	sidPu;		/* 	PU ID				*/
	int	sidLu;		/* 	LU Address			*/
	short	sidIdx;		/* 	Session Index			*/
}
tSid;

/* Data Format for Display PU list */
typedef struct
{
	IBMName	plPUName;	/* PU name				*/
}
tPUlist;

/* Data Format for Display Server list	*/
typedef struct
{
	IBMName	pSVName;	/* Server name				*/
}
tSVlist;

/* Data Format for Display Local LU list */
typedef struct
{
	IBMName	llLUName;	/* LU name				*/
	char 	llParal; 	/* Single or Parallel			*/
				/* 	luSINGLE			*/
				/*	luPARAL				*/
}
tLLUlist;

/* Data Format for Display Remote LU list */
typedef struct
{
	IBMName	rlLUName;	/* LU name				*/
}
tRLUlist;

/* Data Format for Display Mode List */
typedef struct
{
	IBMName	mModeName;	/* Mode Name	  			*/
	IBMName	mLLUName;	/* Local LU name 			*/
	IBMName	mRLUName;	/* Remote LU name 			*/
}
tModelist;

/* Data Format for Transaction Program List */
typedef struct
{
	char	tplType;	/*   TP Type: USER, DIA, SNADS, etc.	*/
				/*   ttUSER   				*/
				/*   ttDIA	  			*/
				/*   ttSNADS  				*/
				/*   ttLUSVC  				*/
	IBMName	tplTpn;		/*   Transaction Program Name 		*/
}
tTPlist;

/* Data Format for Display Server 					*/
typedef	struct
{
	IBMName	sdSVName;		/* Server Name			*/
	IBMName	sdGpName;		/* Group Name			*/
	int	sdState;		/* Server State			*/
	int	sdPUall;		/* PU allocated on this Server	*/
	int	sdLUall;		/* LUs allocated on this Server */
	int     sdLUCfg;		/* LUs configured on this Server*/
}
tSV;

/* Data Format for Display PU 	*/
typedef struct
{
	int	pdPUid;		    /* PU ID				*/
	int	pdNode;		    /* Node Type: nHOST or nPEER 	*/
}
tPU;

/* Data Format for Display Local LU */
typedef struct
{
	int	ldAddr;			/* Local LU address		*/
	IBMName	ldLUName;		/* Local LU  Network Name	*/
        int	ldParal;		/* Single or Parallel		*/
				    	/*   luSINGLE  			*/
				    	/*   luPARAL   			*/
	int	ldState;		/* Current state of local LU	*/
				    	/*   luRESET   			*/
				    	/*   luACTIVE  			*/
	int	ldLimit;		/* Session Limit on LLU		*/
	int	ldBusy;			/* Busy session count		*/
	int	ldCount;		/* Active session count		*/
	tSid    ldActSessId[MAXSESSID]; /* List of (active) Session IDs */
}
tLLU;

/* Data Format for Display Remote LU  */
typedef struct
{
	IBMName	rdLUName;		/* Remote LU Network Name 	*/
	int	rdParal;		/* No|Single|Parallel connection*/
				    	/*   tcSINGLE  			*/
				    	/*   tcPARAL   			*/
				    	/*   tcNONE    			*/
	int	rdCount;		/* Active session count		*/
	tSid    rdActSessId[MAXSESSID]; /* List of (active) Session IDs	*/
}
tRLU;

/* Data Format for Display Mode (Local LU or Remote LU) */
typedef struct
	{
	int	mdParSess;		/* Single|Parallel session	*/
				    	/*   luSINGLE  			*/
				    	/*   luPARAL   			*/
	char	mdsynclevel;		/* Sync-Level supported         */
				    	/*   synNONE			*/
				    	/*   synCONFIRM			*/
				    	/*   synSYNCPT 			*/
	int	mdLimit;		/* Mode Session Limit 		*/
	int	mdMinCw;		/* Minimum Cont_Winner		*/
	int	mdMinCl;		/* Minimum Cont_Loser		*/
	int	mdAuto;			/* # of Automatic Sessions	*/
	char	mdRe_Initiate;		/* Single Session ReInit Resp	*/
				    	/*   riRESERVED  		*/
				    	/*   riCOPR	    		*/
				    	/*   riPHS	    		*/
				    	/*   riSHS	    		*/
				    	/*   riEITHER    		*/
	int	mdCwActive;		/* # of Active Cont_Winner	*/
	int	mdClActive;		/* # of Active Cont_Loser	*/
	int	mdPActive;		/* # of Pend-Active Sessions	*/
	int	mdCwBusy;		/* # of Busy Cont_Winner	*/
	int	mdClBusy;		/* # of Busy Cont_Loser		*/
	int	mdConvQ;		/* # of Conversations enqueued  */
	int	mdMaxSRU;		/* Max Send RU size		*/
	int	mdMaxRRU;		/* Max Receive RU size		*/
	int	mdInPacing;		/* Incoming pacing size		*/
	int	mdOutPacing;		/* Outgoing pacing size		*/
	int 	mdTermCnt;		/* Termination Count		*/
	char	mdsDrain;		/* Drain Local LU		*/
				    	/*   drRESET	    		*/
				    	/*   drNO	    		*/
				    	/*   drYES	    		*/

	char	mdtDrain;		/* Drain Remote LU		*/
				    	/*   drRESET	    		*/
				    	/*   drNO	    		*/
				    	/*   drYES	    		*/
	int	mdActive;		/* Active Session count		*/
	tSid    mdActSessId[MAXSESSID]; /* List of (active) Session IDs */
}
tMode;

/* Data Format for Display Transaction Program */
typedef struct
{
	char	tStatus;		/* Status of the TP		*/
				    	/*   tsENABLED   		*/
				    	/*   tsTEMPDIS   		*/
				    	/*   tsPERMDIS   		*/

	char	tConvType;		/* Conversation type required 	*/
					/*   (Bit Mask)  		*/
				    	/*   ctMAPPED    		*/
				    	/*   ctBASIC	    		*/
	char	tSyncLevel;		/* Sync Level required		*/
				    	/*   synNONE	   		*/
				    	/*   synCONFIRM 		*/
				    	/*   synSYNCPT  		*/
	char	tSecurity;		/* Is Security used ?		*/
				    	/*   seNO   			*/
				    	/*   seYES  			*/
	char	tDefUc[MAXUSERCODE];	/* Default user code		*/
	char	tMcFunction;		/* MC_FUNCTION_SUPPORTED list   */
					/*   (Bit Mask)			*/
				    	/*   mcFMHDATA   		*/
				    	/*   mcMAPPING   		*/
	char	tPrivilege;		/* Privilege list (bit mask)	*/
				    	/*   pvSESSCNTL  		*/
				    	/*   pvDISPLAY   		*/
				    	/*   pvDEFINE    		*/
				    	/*   pvCNOS	    		*/
				    	/*   pvSTP	    		*/
				    	/*   pvDELETE    		*/
	char    tWorkdir[MAXFILENAME];	/* Working directory to run TP	*/
	char    tPath[MAXFILENAME]; 	/* Pathname of the TP		*/
}
tTP;

/* Data Format for Display Session Information */
typedef	struct
{
	IBMName	sdLLUName;		/* Local LU Name		*/
	IBMName	sdRLUName;		/* Remote LU Name		*/
	tSid	sdSI;			/* Session Id			*/
	char	sdSState;		/* Session state		*/
				    	/*   scbRESET    		*/
				    	/*   scbPACTIVE  		*/
				    	/*   scbFREE	    		*/
				    	/*   scbBID	    		*/
				    	/*   scbINUSE    		*/
				    	/*   scbDRAIN    		*/
				    	/*   scbPTERM    		*/
	int	sdSRU;			/* Send RU size			*/
	int	sdRRU;			/* Receive RU size		*/
	char	sdSRole;		/* Primary or Secondary		*/
				    	/*   srPRIMARY   		*/
				    	/*   srSECONDARY 		*/
	char	sdCont;	    		/* Contention polarity		*/
				    	/*   scWINNER    		*/
				    	/*   scLOSER    		*/   
}
tSessInfo;


/* Data Format for Display Status */
typedef	struct
{
	int	srnTP;		/* number of TPs 			*/
	int	srnSLU;	    	/* # of Single Session Local LUs	*/
	int	srnPLU;		/* # of Parallel Session Local LUs 	*/
	int	srnRLU;		/* number of remote LUs 		*/
	int	srnLarge;	/* number of Large Memory blocks	*/
	int	srnSmall;	/* number of Small Memory blocks	*/
	int	srmaxTpi;	/* Maximum TP instances supported	*/
	int	srmaxConv;	/* Maximim Conversations supported	*/
	int	srnTpi;		/* Current TP instance count		*/
	int	srnConv;	/* Current Conversation count 		*/
	int	srnSess;	/* Current Number of Active Sessions	*/
}
tStatus;

#endif /* _PIMCOPR_H_ */

⌨️ 快捷键说明

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