ipc.h
来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C头文件 代码 · 共 123 行
H
123 行
/* $Id: ipc.h,v 1.3 2003/07/23 20:06:12 pnenzi Exp $ * *//*============================================================================FILE IPC.hMEMBER OF process XSPICECopyright 1991Georgia Tech Research CorporationAtlanta, Georgia 30332All Rights ReservedPROJECT A-8503AUTHORS 9/12/91 Steve TynorMODIFICATIONS <date> <person name> <nature of modifications>SUMMARY Provides compatibility for the new SPICE simulator to both the MSPICE user interface and BCP (via ATESSE v.1 style AEGIS mailboxes) and the new ATESSE v.2 Simulator Interface and BCP (via Bsd Sockets).INTERFACESREFERENCED FILES None.NON-STANDARD FEATURES None.============================================================================*/#ifndef IPC_DEFINED #define IPC_DEFINED #define IPC_MAX_LINE_LEN 80#define IPC_MAX_PATH_LEN 2048/* Known socket port for server and client to communicate: */#define SOCKET_PORT 1064/* Recognition character for Beginning Of Line of message: */#define BOL_CHAR '\\'/* Length (in bytes) of a socket message header: */#define SOCK_MSG_HDR_LEN 5typedef int Ipc_Boolean_t;#define IPC_FALSE 0#define IPC_TRUE 1 typedef struct { /* Don't change this type! It is cast elsewhere */ double real; double imag;} Ipc_Complex_t;/*---------------------------------------------------------------------------*/typedef enum { IPC_STATUS_OK, IPC_STATUS_NO_DATA, IPC_STATUS_END_OF_DECK, IPC_STATUS_EOF, IPC_STATUS_ERROR,} Ipc_Status_t;#if 0/*---------------------------------------------------------------------------*/typedef void* Ipc_Connection_t;/* * A connection is an `opaque' type - the user has no access to the details of * the implementation. Indeed the details are different depending on whether * underlying transport mechanism is AEGIS Mailboxes or Bsd Sockets (or * something else...) */#endif/*---------------------------------------------------------------------------*/typedef enum { IPC_WAIT, IPC_NO_WAIT,} Ipc_Wait_t;/*---------------------------------------------------------------------------*/typedef enum { IPC_PROTOCOL_V1, /* >DATAB records in ATESSE v.1 format * Handles v.1 style logfile name passing protocol */ IPC_PROTOCOL_V2, /* >DATAB records in ATESSE v.2 format */} Ipc_Protocol_t;/*---------------------------------------------------------------------------*/typedef enum { IPC_MODE_BATCH, IPC_MODE_INTERACTIVE,} Ipc_Mode_t;/*---------------------------------------------------------------------------*/typedef enum { IPC_ANAL_DCOP, IPC_ANAL_DCTRCURVE, IPC_ANAL_AC, IPC_ANAL_TRAN,} Ipc_Anal_t;#endif /* IPC_DEFINED */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?