Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Macros | Typedefs
IncludeLibrary_comand.h File Reference

Data Structures

struct  _buf_acp
 
struct  _cmd_buff
 
struct  _buf
 
struct  _buf_rsp
 

Macros

#define BUFFER_SIZE   BUF_CMD_SIZ_BYT
 
#define SIZE_CMD_BUFF   BUFFER_SIZE - 7 * sizeof(short)
 
#define GETSEQ_HDR(H)   (0x03030303 & (H))
 
#define GETLGR_HDR(H)   ((H) >> 2 & 0x3f | (H) >> 4 & 0xfc0)
 
#define GETNARG_HDR(H)   GETLGR_HDR(H)
 
#define GETLVL_HDR(H)   ((H) >> 18 & 0x3f | (H) >> 20 & 0xfc0)
 
#define MAKE_HDR(S, LVL, X)
 
#define COD_CMD_CTL   -6
 
#define COD_CMD_CNX   -5
 
#define COD_CMD_EXI   -4
 
#define COD_CMD_ASS   -3
 
#define COD_CMD_ASN   -2
 
#define COD_CMD_DEA   -1
 
#define COD_CMD_DAS   0
 
#define COD_CTL_PRT   0 /* Sortie de la sd du serveur */
 
#define COD_CTL_RESTART   1 /* Arret et Restart du serveur */
 
#define COD_CTL_ACT_RESTART
 
#define COD_CTL_STOP   3 /* Arret du serveur (non fait) */
 
#define COD_CTL_CPU   4 /* Rend le type de CPU du serveur */
 
#define COD_CTL_ERRMSG   5 /* Rend le message d'erreur <--> status */
 
#define COD_CTL_DYNLOAD
 
#define COD_CTL_STARTLOAD
 
#define COD_CTL_ETHADR
 
#define COD_CTL_DYNNOLOAD
 
#define COD_CTL_STARTNOLOAD
 
#define LG_CMD_SRV   12
 
#define LG_CMD_CNX   112
 
#define LG_CMD_ASS   112
 
#define LG_CMD_DEA   12
 
#define LG_CMD_EXI   12
 
#define LG_CMD_CTL   20
 
#define LG_RSP_SRV   20
 
#define LG_RSP_CNX   20
 
#define LG_RSP_ASS   20
 
#define LG_RSP_DEA   20
 
#define LG_RSP_EXI   20
 
#define LG_RSP_CTL   20
 
#define LG_NOD   16
 
#define HOSTNAMELEN   256
 
#define LG_TSK   80
 
#define LG_USR   16
 
#define LG_PID   8
 
#define LG_PID_DEC   4
 
#define LG_PTC   4
 
#define LVL_VAL0   0x1
 
#define LVL_VAL   0x2
 
#define LVL_WRT_VAL   0x3
 
#define SEQ_BYT_VAL   0x03020100
 
#define MSK_SEQ_BYT   0x03030303
 
#define MSK_SEQ_BYT_VAL   0xFCFCFCFC
 

Typedefs

typedef struct _buf_acp BUF_ACP
 
typedef struct _buf_acpPBUF_ACP
 
typedef struct _cmd_buff CMD_BUFF
 
typedef struct _cmd_buffPCMD_BUFF
 
typedef struct _buf BUF
 
typedef struct _bufPBUF
 
typedef struct _buf_rsp BUF_RSP
 
typedef struct _buf_rspPBUF_RSP
 

Macro Definition Documentation

#define BUFFER_SIZE   BUF_CMD_SIZ_BYT
#define COD_CMD_ASN   -2
#define COD_CMD_ASS   -3
#define COD_CMD_CNX   -5
#define COD_CMD_CTL   -6
#define COD_CMD_DAS   0
#define COD_CMD_DEA   -1
#define COD_CMD_EXI   -4
#define COD_CTL_ACT_RESTART
Value:
2 /* Arret et Restart du serveur s'il est actif
(k_func a TRUE) */
#define COD_CTL_CPU   4 /* Rend le type de CPU du serveur */
#define COD_CTL_DYNLOAD
Value:
6 /* Requete de chargement dynamique d'un
partageable */
#define COD_CTL_DYNNOLOAD
Value:
9 /* Requete de chargement dynamique d'un
partageable */
#define COD_CTL_ERRMSG   5 /* Rend le message d'erreur <--> status */
#define COD_CTL_ETHADR
Value:
8 /* Permet de recuperer l'adresse Ethernet ou
le systeme identification */
#define COD_CTL_PRT   0 /* Sortie de la sd du serveur */
#define COD_CTL_RESTART   1 /* Arret et Restart du serveur */
#define COD_CTL_STARTLOAD
Value:
7 /* Comme COD_CTL_DYNLOAD + Start_only ou
multi-connection dans le process fils cree
par Serpc */
#define COD_CTL_STARTNOLOAD
Value:
10 /* Comme COD_CTL_DYNLOAD + Start_only ou
multi-connection dans le process fils cree
par Serpc */
#define COD_CTL_STOP   3 /* Arret du serveur (non fait) */
#define GETLGR_HDR (   H)    ((H) >> 2 & 0x3f | (H) >> 4 & 0xfc0)
#define GETLVL_HDR (   H)    ((H) >> 18 & 0x3f | (H) >> 20 & 0xfc0)
#define GETNARG_HDR (   H)    GETLGR_HDR(H)
#define GETSEQ_HDR (   H)    (0x03030303 & (H))
#define HOSTNAMELEN   256
#define LG_CMD_ASS   112
#define LG_CMD_CNX   112
#define LG_CMD_CTL   20
#define LG_CMD_DEA   12
#define LG_CMD_EXI   12
#define LG_CMD_SRV   12
#define LG_NOD   16
#define LG_PID   8
#define LG_PID_DEC   4
#define LG_PTC   4
#define LG_RSP_ASS   20
#define LG_RSP_CNX   20
#define LG_RSP_CTL   20
#define LG_RSP_DEA   20
#define LG_RSP_EXI   20
#define LG_RSP_SRV   20
#define LG_TSK   80
#define LG_USR   16
#define LVL_VAL   0x2
#define LVL_VAL0   0x1
#define LVL_WRT_VAL   0x3
#define MAKE_HDR (   S,
  LVL,
 
)
Value:
((S) \
| (X) << 2 & 0xfc | (X) << 4 & 0xfc00 \
| (LVL) << 18 & 0xfc0000 | (LVL) << 20 & 0xfc000000)
#define MSK_SEQ_BYT   0x03030303
#define MSK_SEQ_BYT_VAL   0xFCFCFCFC
#define SEQ_BYT_VAL   0x03020100
#define SIZE_CMD_BUFF   BUFFER_SIZE - 7 * sizeof(short)

Typedef Documentation

typedef struct _buf BUF
typedef struct _buf_acp BUF_ACP
typedef struct _buf_rsp BUF_RSP
typedef struct _cmd_buff CMD_BUFF
typedef struct _buf * PBUF
typedef struct _buf_acp * PBUF_ACP
typedef struct _buf_rsp * PBUF_RSP
typedef struct _cmd_buff * PCMD_BUFF