github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/core/net_ipc/ipc_interface_impl.h (about)

     1  // Copyright (C) 2018 go-nebulas authors
     2  //
     3  // This file is part of the go-nebulas library.
     4  //
     5  // the go-nebulas library is free software: you can redistribute it and/or
     6  // modify
     7  // it under the terms of the GNU General Public License as published by
     8  // the Free Software Foundation, either version 3 of the License, or
     9  // (at your option) any later version.
    10  //
    11  // the go-nebulas library is distributed in the hope that it will be useful,
    12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  // GNU General Public License for more details.
    15  //
    16  // You should have received a copy of the GNU General Public License
    17  // along with the go-nebulas library.  If not, see
    18  // <http://www.gnu.org/licenses/>.
    19  //
    20  // clang-format off
    21  define_ipc_param(uint64_t, p_holder)
    22  define_ipc_param(uint64_t, p_height)
    23  define_ipc_param(uint32_t, p_major)
    24  define_ipc_param(uint32_t, p_minor)
    25  define_ipc_param(uint32_t, p_patch)
    26  define_ipc_param(std::string, p_nbre_root_dir)
    27  define_ipc_param(std::string, p_nbre_exe_name)
    28  define_ipc_param(std::string, p_neb_db_dir)
    29  define_ipc_param(std::string, p_nbre_log_dir)
    30  define_ipc_param(std::string, p_admin_pub_addr)
    31  define_ipc_param(std::string, p_nbre_db_dir)
    32  define_ipc_param(uint64_t, p_nbre_start_height)
    33  
    34  define_ipc_pkg(nbre_version_req, p_holder, p_height)
    35  define_ipc_pkg(nbre_version_ack, p_holder, p_major, p_minor, p_patch)
    36  define_ipc_pkg(nbre_init_req, p_holder)
    37  define_ipc_pkg(nbre_init_ack, p_nbre_root_dir, p_nbre_exe_name, p_neb_db_dir,
    38                 p_nbre_log_dir, p_nbre_db_dir, p_admin_pub_addr,
    39                 p_nbre_start_height)
    40  // define_ipc_api(server_send_pkg, client_send_pkg)
    41  //define_ipc_api(nbre_init_ack, nbre_init_req)
    42  define_ipc_api(nbre_version_req, nbre_version_ack)
    43  
    44  define_ipc_param(std::string, p_ir_name_list)
    45  define_ipc_pkg(nbre_ir_list_req, p_holder)
    46  define_ipc_pkg(nbre_ir_list_ack, p_holder, p_ir_name_list)
    47  define_ipc_api(nbre_ir_list_req, nbre_ir_list_ack)
    48  
    49  define_ipc_param(std::string, p_ir_name)
    50  define_ipc_param(std::string, p_ir_versions)
    51  define_ipc_pkg(nbre_ir_versions_req, p_holder, p_ir_name)
    52  define_ipc_pkg(nbre_ir_versions_ack, p_holder, p_ir_versions)
    53  define_ipc_api(nbre_ir_versions_req, nbre_ir_versions_ack)
    54  
    55  define_ipc_param(uint64_t, p_start_block)
    56  define_ipc_param(uint64_t, p_end_block)
    57  define_ipc_param(uint64_t, p_nr_version)
    58  define_ipc_param(std::string, p_nr_handle)
    59  define_ipc_pkg(nbre_nr_handle_req, p_holder, p_start_block, p_end_block, p_nr_version)
    60  define_ipc_pkg(nbre_nr_handle_ack, p_holder, p_nr_handle)
    61  define_ipc_api(nbre_nr_handle_req, nbre_nr_handle_ack)
    62  
    63  define_ipc_param(std::string, p_nr_result)
    64  define_ipc_pkg(nbre_nr_result_by_handle_req, p_holder, p_nr_handle)
    65  define_ipc_pkg(nbre_nr_result_by_handle_ack, p_holder, p_nr_result)
    66  define_ipc_api(nbre_nr_result_by_handle_req, nbre_nr_result_by_handle_ack)
    67  
    68  define_ipc_pkg(nbre_nr_result_by_height_req, p_holder, p_height)
    69  define_ipc_pkg(nbre_nr_result_by_height_ack, p_holder, p_nr_result)
    70  define_ipc_api(nbre_nr_result_by_height_req, nbre_nr_result_by_height_ack)
    71  
    72  define_ipc_param(std::string, p_nr_sum)
    73  define_ipc_pkg(nbre_nr_sum_req, p_holder, p_height)
    74  define_ipc_pkg(nbre_nr_sum_ack, p_holder, p_nr_sum)
    75  define_ipc_api(nbre_nr_sum_req, nbre_nr_sum_ack)
    76  
    77  define_ipc_param(uint64_t, p_version)
    78  define_ipc_param(std::string, p_dip_reward)
    79  define_ipc_pkg(nbre_dip_reward_req, p_holder, p_height, p_version)
    80  define_ipc_pkg(nbre_dip_reward_ack, p_holder, p_dip_reward)
    81  define_ipc_api(nbre_dip_reward_req, nbre_dip_reward_ack)
    82  
    83  define_ipc_param(std::vector<std::string>, p_ir_transactions)
    84  define_ipc_pkg(nbre_ir_transactions_req, p_holder, p_height, p_ir_transactions)
    85  
    86      // clang-format on