2018-07-30 09:45:33 +00:00
|
|
|
#ifndef communicate_h
|
|
|
|
#define communicate_h
|
|
|
|
|
2019-01-11 17:00:51 +00:00
|
|
|
#include <communicate/communicate_type.h>
|
2018-08-23 07:24:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************
|
|
|
|
消息的操作: 消息的操作相关函数
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
*创建消息
|
|
|
|
*返回: 处理成功则返回指向相关结构体所在内存空间的指针,不成功则返回NULL.
|
|
|
|
*/
|
2018-08-23 07:49:02 +00:00
|
|
|
extern MSG *createMessage(char *title, void *data, unsigned long data_size);
|
2018-08-23 07:24:59 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
*通过ipv4地址发送消息
|
|
|
|
*返回: 处理成功则返回0,不成功则返回-1.
|
|
|
|
*/
|
2018-08-23 07:49:02 +00:00
|
|
|
extern int sendMessageIPv4(MSG *p_msg, char *ip, unsigned int port);
|
2018-08-23 07:24:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-30 09:45:33 +00:00
|
|
|
|
|
|
|
#endif /* communicate_h */
|