📄 pg_head.h
字号:
#ifndef _PG_HEAD_H#define _PG_HEAD_H#define AUTHEN_REQ_MSG 1#define AUTHEN_RES_MSG 2#define MAX_LINE_LENGTH 1024#define COL_MAX_NUM_CPP 100#define COL_MAX_LEN_CPP 500#define xMAX_STRING_LEN 255typedef struct{ int msg_version; int msg_type; char transaction_id[10];}PGMSGHeadDef;typedef struct{ PGMSGHeadDef msg_head; char timestamp[20]; char account_type[3]; char account[40]; char passwd[20];}PGAuthenReqDef;typedef struct{ PGMSGHeadDef msg_head; char timestamp[20]; int result; char info[50];}PGAuthenResDef;typedef struct{ char db_user[40]; char db_passwd[40]; char db_server[30]; int port; char key[17];}PGSERVER_CONFIG;typedef struct{ char username[40]; char passwd[20]; int status; int passwdtype;}ACCOUNT_INFO;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -