#ifndef __CONFIG_HPP__ #define __CONFIG_HPP__ #include #include "enclave_api.h" // startweight is the running total of all the weight entries of nodes // lower numbered than this one. E.g., if the weights of nodes 0, 1, // ..., etc. are [1, 2, 4, 1, 2, ...], the startweight values will be // [0, 1, 3, 7, 8, ...]. struct NodeWeight { uint16_t startweight; uint8_t weight; }; struct Config { threadid_t nthreads; nodenum_t num_nodes; nodenum_t num_ingestion_nodes; nodenum_t num_routing_nodes; nodenum_t num_storage_nodes; nodenum_t my_node_num; uint32_t user_count; uint16_t msg_size; uint8_t m_priv_out; uint8_t m_priv_in; uint8_t m_pub_out; uint8_t m_pub_in; bool private_routing; std::vector weights; std::vector ingestion_nodes; std::vector routing_nodes; std::vector storage_nodes; }; extern Config g_teems_config; #endif