⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 local.h

📁 Linux MessageQueue Sample code
💻 H
字号:
  /* Common header file for 2nd Message Queue Example      */  

#define _GNU_SOURCE 
#include <cstdio> 
#include <cstring> 
#include <sys/types.h> 
#include <sys/ipc.h> 
#include <sys/msg.h> 
#include <unistd.h> 
const char     SEED  ='M';        // Common seed for ftok 
const long int SERVER=1L;         // Message type for server 
typedef struct
{ 
	long int msg_to;                // Message in queue for this type 
	long int msg_fm;                // Placed in the queue by this type 
	char buffer[BUFSIZ];            // The actual message 
}MESSAGE; 
using namespace std; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -