Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2018
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #pragma once
8 :
9 : #include "server_udp_config.hpp"
10 : #include <iow/ip/udp/server/options_json.hpp>
11 : #include <wfc/json.hpp>
12 :
13 : namespace wfc{ namespace io{
14 :
15 :
16 : struct server_udp_config_json
17 : {
18 : struct server_json: ::iow::ip::udp::server::options_json{};
19 :
20 0 : JSON_NAME(target)
21 0 : JSON_NAME(rn)
22 :
23 : typedef json::object<
24 : server_udp_config,
25 : json::member_list<
26 : json::member<n_target, server_udp_config, std::string, &server_udp_config::target_name>,
27 : json::member<n_rn, server_udp_config, bool, &server_udp_config::rn>,
28 : json::base< server_json >
29 : >,
30 : json::strict_mode
31 : > type;
32 :
33 : typedef type::target target;
34 : typedef type::serializer serializer;
35 : typedef type::member_list member_list;
36 : };
37 :
38 : }}
|