Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
nmranet_constants.cxx File Reference

Go to the source code of this file.

Functions

 DEFAULT_CONST_ (remote_alias_cache_size, 10)
 Number of entries in the remote alias cache.
 
 DEFAULT_CONST_ (local_alias_cache_size, 3)
 Number of entries in the local alias cache.
 
 DEFAULT_CONST_ (reserve_unused_alias_count, 0)
 Keep this many allocated but unused aliases around.
 
 DEFAULT_CONST_ (local_nodes_count, 2)
 Maximum number of local nodes.
 
 DEFAULT_CONST_ (num_datagram_registry_entries, 2)
 Number of datagram registry entries.
 
 DEFAULT_CONST_ (num_datagram_clients, 2)
 Number of datagram clients.
 
 DEFAULT_CONST_ (num_stream_senders, 1)
 Number of stream senders.
 
 DEFAULT_CONST_ (num_memory_spaces, 5)
 Maximum number of memory spaces that can be registered for the MemoryConfig datagram handler.
 
 DEFAULT_CONST_FALSE (enable_all_memory_space)
 Set to CONSTANT_TRUE if you want to export an "all memory" memory space from the SimpleStack.
 
 DEFAULT_CONST_TRUE (node_init_identify)
 Set to CONSTANT_TRUE if you want the nodes to send out producer / consumer identified messages at boot time.
 
 DEFAULT_CONST_ (bulk_alias_num_can_frames, 20)
 How many CAN frames should the bulk alias allocator be sending at the same time.
 
 DEFAULT_CONST_ (stream_receiver_default_window_size, 2 *1024)
 Default number of bytes in maximum stream window size for { StreamReceiver }.
 

Detailed Description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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 HOLDER 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.

Specifies the default values for configuration constants related to NMRAnet.

Author
Balazs Racz
Date
10 Mar 2015

Definition in file nmranet_constants.cxx.

Function Documentation

◆ DEFAULT_CONST_() [1/3]

DEFAULT_CONST_ ( num_datagram_clients  ,
 
)

Number of datagram clients.

This is how many datagram send operations can happen concurrently.

◆ DEFAULT_CONST_() [2/3]

DEFAULT_CONST_ ( num_datagram_registry_entries  ,
 
)

Number of datagram registry entries.

This is how many datagram handlers can be registered (e.g. memory config protocol is one).

◆ DEFAULT_CONST_() [3/3]

DEFAULT_CONST_ ( num_stream_senders  ,
 
)

Number of stream senders.

This is how many stream send operations can happen concurrently.

◆ DEFAULT_CONST_FALSE()

DEFAULT_CONST_FALSE ( enable_all_memory_space  )

Set to CONSTANT_TRUE if you want to export an "all memory" memory space from the SimpleStack.

Note that this should not be enabled in production, because there is no protection against segfaults in it.

◆ DEFAULT_CONST_TRUE()

DEFAULT_CONST_TRUE ( node_init_identify  )

Set to CONSTANT_TRUE if you want the nodes to send out producer / consumer identified messages at boot time.

This is required by the OpenLCB standard.