message.h

来自「飞鸽传书的linux源代码」· C头文件 代码 · 共 31 行

H
31
字号
#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 + =
减小字号Ctrl + -
显示快捷键?