|
Open Model Railroad Network (OpenMRN)
|
#include "utils/constants.hxx"Go to the source code of this file.
Functions | |
| DEFAULT_CONST_ (nmranet_can_bitrate, 125000) | |
| DEFAULT_CONST_ (can2_bitrate, 125000) | |
| DEFAULT_CONST_ (main_thread_priority, 0xdefa01) | |
| DEFAULT_CONST_ (main_thread_stack_size, 2048) | |
| DEFAULT_CONST_ (executor_max_sleep_msec, 40) | |
| DEFAULT_CONST_ (executor_select_prescaler, 5) | |
| DEFAULT_CONST_ (can_tx_buffer_size, 16) | |
| DEFAULT_CONST_ (can_rx_buffer_size, 16) | |
| DEFAULT_CONST_ (serial_tx_buffer_size, 16) | |
| DEFAULT_CONST_ (serial_rx_buffer_size, 16) | |
| DEFAULT_CONST_ (gc_generate_newlines, 0) | |
| DEFAULT_CONST_ (gridconnect_buffer_size, 65) | |
| DEFAULT_CONST_ (gridconnect_buffer_delay_usec, 300) | |
| DEFAULT_CONST_ (gridconnect_port_max_incoming_packets, 6) | |
| Number of pending packets per inbound gridconnect port. | |
| DEFAULT_CONST_ (gridconnect_bridge_max_incoming_packets, 1) | |
| 1 = infinite, do not preallocate memory | |
| DEFAULT_CONST_ (gridconnect_bridge_max_outgoing_packets, 1) | |
| 1 = infinite | |
| DEFAULT_CONST_ (gridconnect_tcp_rcv_buffer_size, 1) | |
| 1 = don't set | |
| DEFAULT_CONST_ (gridconnect_tcp_snd_buffer_size, 1) | |
| 1 = don't set | |
| DEFAULT_CONST_ (gridconnect_tcp_notsent_lowat_buffer_size, 1) | |
| 1 = don't set | |
| DEFAULT_CONST_FALSE (gridconnect_tcp_use_select) | |
| DEFAULT_CONST_ (directhub_port_incoming_buffer_size, 1460) | |
| DEFAULT_CONST_ (directhub_port_max_incoming_packets, 2) | |
| DEFAULT_CONST_ (socket_listener_stack_size, 1000) | |
| Use a stack size of 1000 for SocketListener tasks. | |
| DEFAULT_CONST_ (socket_listener_backlog, 5) | |
| Allow up to five sockets to be pending for accept() in SocketListener. | |
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 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.
Definition in file constants.cxx.
| DEFAULT_CONST_ | ( | gridconnect_port_max_incoming_packets | , |
| 6 | |||
| ) |
Number of pending packets per inbound gridconnect port.
There is memory cost associated with setting this number high.