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

📄 message.h

📁 linux下的飞鸽传书 日本人设计 使用非常方便
💻 H
字号:
#if !defined(MESSAGE_H)#define MESSAGE_H#include "common.h"#include "callbacks.h"#include "support.h"#define IPMSG_MSG_MAGIC 0x20061123#define NAME_LEN 32typedef struct _msg_data{  int magic;  int version;  int pkt_seq_no;  int command;  int command_opts;  char *username;  char *hostname;  char *extstring;  struct timeval tv;  char *message;}msg_data_t;const char *refer_user_name_from_msg(const msg_data_t *msg);const char *refer_host_name_from_msg(const msg_data_t *msg);const char *refer_group_name_from_msg(const msg_data_t *msg);const char *refer_nick_name_from_msg(const msg_data_t *msg);int refer_pkt_no_name_from_msg(const msg_data_t *msg);int init_message_data(msg_data_t *msg);int release_message_data(msg_data_t *msg);int parse_message(msg_data_t *msg,const char *message_buff,size_t len);#endif

⌨️ 快捷键说明

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