📄 desay.h
字号:
#ifndef _DESAY_H_
#define _DESAY_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <sys/un.h>
#include <netdb.h>
#include <time.h>
#include <signal.h>
#include "sys/mman.h"
#include "unistd.h"
#include <fcntl.h>
#include <semaphore.h>
#include "sys/stat.h"
#ifndef FILE_MODE
#define FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
#endif
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
#ifndef PF_LOCAL
#define PF_LOCAL PF_UNIX
#endif
#ifndef SUN_LEN
#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))//计算协议socket地址长度
#endif
#ifndef DESAY_TYPE
typedef unsigned char UINT8;
typedef unsigned char BYTE;
typedef unsigned char BOOL;
typedef unsigned short int UINT16;
typedef unsigned int UINT32;
typedef unsigned long long UINT64;
typedef char INT8;
typedef short int INT16;
typedef int INT32;
typedef long long INT64;
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef SUCCESS
#define SUCCESS 0
#endif
#ifndef FAILURE
#define FAILURE -1
#endif
#ifndef ERROR
#define ERROR FAILURE
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -