📄 marben_a.h
字号:
#ifndef MARBEN_A_H#define MARBEN_A_H/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//* (c) Copyright Systems Integration Specialists Company, Inc., *//* 1993 - 2001, All Rights Reserved *//* *//* MODULE NAME : marben_a.h *//* PRODUCT(S) : MARBEN SUIC *//* *//* MODULE DESCRIPTION : *//* *//* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : *//* NONE *//* *//* MODIFICATION LOG : *//* Date Who Rev Comments *//* -------- --- ------ ------------------------------------------- *//* 02/19/02 DSF 15 Added s_strict_activation *//* 10/08/01 EJV 14 Deleted s_max_data_store; *//* 02/08/00 DSF 13 Disabled Security Support for now *//* 12/20/99 DSF 12 Added s_set_done_event *//* 04/05/99 DSF 11 Enabled Security Support (ACSE Authentication) only *//* 08/24/98 EJV 10 Added glb s_max_pipe_size for __hpux. *//* Combined ifdef...endif. *//* Support 1024 OSI and 1024 TCP/IP cons __hpux.*//* 07/29/98 EJV 09 Added glb s_max_pipe_size for sun *//* 06/17/98 EJV 08 Added glb s_max_pipe_size for __alpha, _AIX. *//* 06/16/98 EJV 07 Added __alpha to s_chk_sys_resource. *//* 06/03/98 EJV 06 Added s_chk_sys_resource to check if write *//* will fit into stack's pipe (_AIX). *//* 04/17/98 EJV 05 Added X500_SUPPORT, LDAP_SUPPORT for __alpha *//* 04/03/98 DSF 04 Support 1024 OSI and 1024 TCP/IP connections *//* simultaneously for WIN32 *//* 03/24/98 EJV 03 Added X500_SUPPORT, LDAP_SUPPORT for sparc *//* 03/04/98 EJV 02 Added X500_SUPPORT, LDAP_SUPPORT for _AIX *//* and increased MAX_SUIC_CHAN to 1024. *//* 05/19/97 DSF 01 HP-UX related changes *//* 04/11/97 DSF 7.00 MMSEASE 7.0 release. See MODLS70.DOC for *//* history. *//************************************************************************/#ifdef __cplusplusextern "C" {#endif #ifdef _WIN32#define MAX_SUIC_CHAN 2048 /* number of channels */#define X500_SUPPORT /* X.500 Support enabled */#define LDAP_SUPPORT /* LDAP Support enabled *//* #define SECURITY_SUPPORT */ /* Security support enabled */#endif /* _WIN32 */#if defined(_AIX)#define MAX_SUIC_CHAN 2048 /* number of channels */#define X500_SUPPORT /* X.500 Support enabled */#define LDAP_SUPPORT /* LDAP Support enabled *//* #define SECURITY_SUPPORT */ /* Security support enabled */#endif /* _AIX */#if defined(sparc)#define MAX_SUIC_CHAN 2048 /* number of channels */#define X500_SUPPORT /* X.500 Support enabled */#define LDAP_SUPPORT /* LDAP Support enabled *//* #define SECURITY_SUPPORT */ /* Security support enabled */#endif /* sparc */#if defined(__alpha)#define MAX_SUIC_CHAN 2048 /* number of channels */#define X500_SUPPORT /* X.500 Support enabled */#define LDAP_SUPPORT /* LDAP Support enabled *//* #define SECURITY_SUPPORT */ /* Security support enabled */#endif /* __alpha */#if defined(__hpux)#define MAX_SUIC_CHAN 2048 /* number of channels */#define X500_SUPPORT /* X.500 Support enabled */#define LDAP_SUPPORT /* LDAP Support enabled *//* #define SECURITY_SUPPORT */ /* Security support enabled */#endif /* __hpux */#if !defined(MAX_SUIC_CHAN)#define MAX_SUIC_CHAN 512 /* number of channels */#endif/************************************************************************//************************************************************************//* Error code definitions *//* These codes are returned when a SUIC command function detects an *//* error condition. *//************************************************************************/#define SE_SHMALLOC 0x1501 /* Shared Memory Alloc request failed */#ifdef _WIN32#define SE_TP4NOTINSTALLED 0x1502 /* ISO TP4/CLNP Stack Registry not found */#define SE_BADNSAP 0x1503 /* Bad NSAP value found in Registry */#endif#define SE_BADPROTO 0x1504 /* Inconsistent protocols */#define SE_SERVICENOTINSTALLED 0x1505 /* Required service not installed */#define SE_MARBENPORT_ERR 0x1506 /* Some marben error *//************************************************************************//* Exception code definitions *//************************************************************************//************************************************************************//* User function declarations *//************************************************************************/#define STACK_IS_UNKNOWN 0#define STACK_IS_OSI 1#define STACK_IS_RFC1006 2ST_RET s_reread_remote_ar_info (ST_VOID);ST_INT s_get_stack_type (ST_CHAR *ar_name);ST_RET s_chk_resource (ST_INT chan, ST_INT *out_size, ST_INT *pend_size, ST_LONG *mem_size);/************************************************************************//* The variables below are used to configure SUIC resources. *//************************************************************************/extern ST_INT s_pend_conn_time;extern ST_BOOLEAN s_abort_ass_ind;extern ST_BOOLEAN s_tp4_expdata;extern ST_BOOLEAN s_osi_support;extern ST_BOOLEAN s_tcp_support;extern ST_INT s_idle_time;extern ST_INT s_tx_que_size;extern ST_CHAR s_osiam_cfg_file[];extern ST_BOOLEAN s_strict_activation;#if defined (_WINDOWS) || defined (_WIN32)#ifdef _WIN32#ifdef _WINDOWS_extern ST_CHAR *MMSEventName; /* Pointer to the globally unique name of Event Object */extern HANDLE hMMSEvent; /* Handle to Event Object to be signalled when */ /* s_serve () needs to be called */extern ST_BOOLEAN s_set_done_event; /* flag to control setting of transfer done events */ #endif#else#if defined(_INC_WINDOWS) || defined(__WINDOWS_H)extern HWND hWndMMSEvent; /* Handle to window to receive MMS Events */extern BOOL bMsgsWanted; /* flag to indicate if user wants to receive WM_MMS_EVENT msgs */#endif#define WM_MMS_EVENT (WM_USER + 0x0402) /* Windows Message */#endif#endif#if defined(_AIX) || (defined(unix) && defined(i386)) || defined(sun) || \ defined(__alpha) || defined(__hpux)extern int mms_event_fd; /* SUIC Stack Named Pipe file descriptor *//* The s_chk_sys_resource function allows to check system resources for *//* the available space in stack's pipe before write function is called. */#define S_REQTYPE_ASSOCIATE_REQ 1#define S_REQTYPE_ASSOC_ACCEPT 2#define S_REQTYPE_ASSOC_REJECT 3#define S_REQTYPE_DATA_TRANSFER 4#define S_REQTYPE_RELEASE_REQ 5#define S_REQTYPE_RELEASE_RSP 6#define S_REQTYPE_U_ABORT 7ST_RET s_chk_sys_resource (ST_INT req_type);extern ST_INT s_max_pipe_size; /* This var along with s_chk_sys_resource() */ /* allows to impose flow control when writing */ /* to the stack's pipe. It is initialized to */ /* min supported atomic message size: PIPE_BUF. */ /* On some systems the size can be increased. */#endif /* defined(_AIX) || defined(__alpha) || defined(sun) || defined(__hpux) *//************************************************************************//* UsrMbx Slog Control *//************************************************************************/extern long usr_log_mask;extern LOG_CTRL *usr_log_ctrl;#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -