GHS
Leader Election Based on GHS Minimum Spanning Tree
|
contains all the Config objects and methods for configuring demo::Comms More...
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | demo::Config |
A struct that holds the union of all configuration variables. More... | |
Namespaces | |
demo | |
Macros | |
#define | MAX_N 8 |
The maximum number of agents the demo can accomodate. | |
#define | MAX_ENDPOINT_SZ 256 |
The max strlen() of the endpoint. | |
#define | N_UNSET 0 |
A special value for N that means "not set yet". | |
#define | ID_UNSET -1 |
A special value for an ID that means "not set yet". | |
Functions | |
bool | demo::cfg_is_ok (Config config) |
void | demo::read_cfg_file (const char *fname, Config *c) |
void | demo::read_cfg_stdin (Config *c) |
void | demo::read_cfg_cli (int argc, char **argv, Config *config) |
contains all the Config objects and methods for configuring demo::Comms
Copyright (c) 2022 California Institute of Technology (“Caltech”). U.S. Government sponsorship acknowledged.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.