Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
constants.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CFG_DEFAULT_UDP_ENABLE   true
 
#define CFG_DEFAULT_UDP_LISTENER_PORT   53
 
#define CFG_DEFAULT_UDP_CONN_VECTOR_LEN   8
 
#define CFG_DEFAULT_UDP_SOCK_RECVBUFF_SIZE   0xfffff
 
#define CFG_DEFAULT_UDP_SOCK_SENDBUFF_SIZE   0xfffff
 
#define CFG_DEFAULT_TCP_ENABLE   true
 
#define CFG_DEFAULT_TCP_LIST_PEND_CONNS_MAX   1024
 
#define CFG_DEFAULT_TCP_LISTENER_PORT   53
 
#define CFG_DEFAULT_TCP_CONN_PER_VL_MAX   100000
 
#define CFG_DEFAULT_TCP_LIST_ACCEPT_NEW_CONNS_MAX   8
 
#define CFG_DEFAULT_TCP_SOCK_RECVBUFF_SIZE   0x800
 
#define CFG_DEFAULT_TCP_SOCK_SENDBUFF_SIZE   0x3000
 
#define CFG_DEFAULT_TCP_SIM_QUERY_COUNT   3
 
#define CFG_DEFAULT_TCP_KEEPALIVE   10000
 
#define CFG_DEFAULT_TCP_QUERY_RECV_TIMEOUT   2000
 
#define CFG_DEFAULT_TCP_QUERY_SEND_TIMEOUT   2000
 
#define CFG_DEFAULT_EPOLL_NUM_EVENTS_UDP   8
 
#define CFG_DEFAULT_EPOLL_NUM_EVENTS_TCP   8
 
#define CFG_DEFAULT_VL_THREAD_COUNT   1
 
#define CFG_DEFAULT_VL_SLOWDOWN_ONE   1
 
#define CFG_DEFAULT_VL_SLOWDOWN_TWO   50
 
#define CFG_DEFAULT_VL_SLOWDOWN_THREE   100
 
#define CFG_DEFAULT_APP_LOG_NAME   "ripples.log"
 
#define CFG_DEFAULT_APP_LOG_FILEPATH   "."
 
#define CFG_DEFAULT_QUERY_LOG_BUF_SIZE   6553500
 
#define CFG_DEFAULT_QUERY_LOG_BASE_NAME   "dns_query_log"
 
#define CFG_DEFAULT_QUERY_LOG_PATH   "logs"
 
#define CFG_DEFAULT_QUERY_LOG_ROTATE_SIZE   50000000
 
#define CFG_DEFAULT_RESOURCE_1_NAME   "Resource_1"
 
#define CFG_DEFAULT_RESOURCE_1_FILEPATH   "resource1.txt"
 
#define CFG_DEFAULT_RESOURCE_1_UPDATE_FREQ   5
 
#define TCP_KEEPALIVE_MIN   1000
 
#define TCP_KEEPALIVE_MAX   600000
 
#define DNS_QUERY_REQUEST_MAX_LEN_MIN   512
 
#define DNS_QUERY_REQUEST_MAX_LEN_MAX   1024
 
#define DNS_QUERY_RESPONSE_MAX_LEN_MIN   512
 
#define DNS_QUERY_RESPONSE_MAX_LEN_MAX   0x10000
 
#define EPOLL_NUM_EVENTS_MIN   3
 
#define EPOLL_NUM_EVENTS_MAX   1024
 
#define PROCESS_THREAD_COUNT_MIN   1
 
#define PROCESS_THREAD_COUNT_MAX   1024
 
#define TCP_UDP_PORT_MIN   1
 
#define TCP_UDP_PORT_MAX   65535
 
#define TCP_LIST_PENDING_CONNS_MAX_MIN   1
 
#define TCP_LIST_PENDING_CONNS_MAX_MAX   0xffff
 
#define TCP_LIST_MAX_ACCEPT_NEW_CONN_MIN   1
 
#define TCP_LIST_MAX_ACCEPT_NEW_CONN_MAX   1024
 
#define TCP_CONN_SO_RECVBUFF_MIN   514
 
#define TCP_CONN_SO_RECVBUFF_MAX   0xffff
 
#define TCP_CONN_SO_SENDBUFF_MIN   514
 
#define TCP_CONN_SO_SENDBUFF_MAX   0xfffff
 
#define TCP_CONN_SIM_QUERY_COUNT_MIN   1
 
#define TCP_CONN_SIM_QUERY_COUNT_MAX   0xff
 
#define UDP_CONN_VECTOR_LEN_MIN   1
 
#define UDP_CONN_VECTOR_LEN_MAX   0xffff
 
#define UDP_CONN_SO_RECVBUFF_MIN   518
 
#define UDP_CONN_SO_RECVBUFF_MAX   0xffffff
 
#define UDP_CONN_SO_SENDBUFF_MIN   512
 
#define UDP_CONN_SO_SENDBUFF_MAX   0xffffff
 
#define VL_SLOWDOWN_MIN   1
 
#define VL_SLOWDOWN_MAX   10000
 
#define ERR_MSG_LENGTH   1024
 
#define DNS_RESPONSE_COMPRESSED_NAMES_MAX   64
 
#define UDP_MSG_CONTROL_LEN   64
 
#define RESOURCE_COUNT   1
 
#define RESOURCE_LOOP_TOP_DELTA_TIME   -10
 
#define CHANNEL_BSS_QUEUE_LEN   2
 
#define CHANNEL_LOG_QUEUE_LEN   1024
 
#define APP_LOG_OPEN_WAIT_TIME   5
 
#define APP_LOG_LOOP_SLEEP_TIME   1000000
 
#define FILE_REALPATH_MAX   4096
 
#define VL_RESOURCE_NOTIFY_WAIT_TIME_MAX   1000000000
 
#define QUERY_LOG_LOOP_SLOWDOWN   1000
 
#define QUERY_LOG_LOOP_MSG_WAIT_TIME   10
 
#define QUERY_LOG_FILENAME_MAX_LEN   4096
 
#define QUERY_LOG_FILE_OPEN_RETRY_TIME   1000000
 
#define QUERY_LOG_BUF_MIN_SPACE   0xffff
 

Detailed Description

Author
Faruk Grozdanic

Copyright (c) 2025 Faruk Grozdanic

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.