lichao
2021-06-02 94f2a94f38261528d98a8ece4fcdb386cbca6566
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * =====================================================================================
 *
 *       Filename:  tcp_common.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2021年05月24日 17时24分33秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Li Chao (), lichao@aiotlink.com
 *   Organization:  
 *
 * =====================================================================================
 */
#ifndef TCP_COMMON_8S8O7OV
#define TCP_COMMON_8S8O7OV
 
#include <boost/asio.hpp>
#include <boost/uuid/string_generator.hpp>
#include <boost/uuid/uuid.hpp>
#include <functional>
#include <string>
 
namespace ip = boost::asio::ip;
using boost::asio::ip::tcp;
typedef boost::system::error_code bserror_t;
 
const boost::uuids::uuid kBHTcpServerTag = boost::uuids::string_generator()("e5bff527-6bf8-ee0d-cd28-b36594acee39");
namespace bhome_msg
{
class BHMsgHead;
}
typedef std::function<void(bhome_msg::BHMsgHead &head, std::string body_content)> ReplyCB;
 
#endif // end of include guard: TCP_COMMON_8S8O7OV