Go to the source code of this file.
#define KSN_BUFFER_32_SIZE 32 |
Size of small buffer for string.
#define KSN_BUFFER_64_SIZE 64 |
Size of small buffer for string.
#define KSN_BUFFER_DB_SIZE 2048 |
File: conf.h Author: Kirill Scherba.
Created on April 11, 2015, 6:10 AM
Configuration parameters moduleSize of buffer for UDP packets
- Examples:
- teoack.c, teoackm.c, teol0cli.c, and teolarge.c.
Referenced by cmd_udpp_read_cb(), event_cb(), host_cb(), ksnTCPProxySendTo(), tcp_read_cb(), and test_5_2().
#define KSN_BUFFER_SIZE 1024 |
#define KSN_BUFFER_SM_SIZE 256 |
Size of small buffer for string.
- Examples:
- teostream.c.
Referenced by event_cb(), hotkeys_cb(), ksnet_optRead(), ksnet_optSetApp(), ksnet_vformatMessage(), ksnMultiInit(), ksnTDBget(), ksnTDBkeyList(), ksnTDBset(), main(), read_config(), resolveDnsName(), set_defaults(), stdin_cb(), stream_out_cb(), and teoMultiAddNet().
#define KSN_MAX_HOST_NAME 31 |
#define KSNET_EVENT_MGR_TIMER 0.25 |
#define KSNET_PORT_DEFAULT "9000" |
#define M_ENAMBE_LOG_READER 1 |
#define M_ENAMBE_LOGGING_CLIENT 1 |
#define M_ENAMBE_LOGGING_SERVER 1 |
#define M_ENAMBE_METRIC 1 |
#define M_ENAMBE_STREAM 1 |
#define NUMBER_TRY_PORTS 1000 |
void ksnet_addHWAddrConfig |
( |
teonet_cfg * |
conf, |
|
|
char * |
hwaddr |
|
) |
| |
void ksnet_configInit |
( |
teonet_cfg * |
teo_cfg, |
|
|
void * |
ke |
|
) |
| |
void read_config |
( |
teonet_cfg * |
conf, |
|
|
int |
port_param |
|
) |
| |
Read configuration parameters from file.
- Parameters
-
References teonet_cfg::auth_secret, teonet_cfg::block_cli_input_f, teonet_cfg::color_output_disable_f, teonet_cfg::crypt_f, teonet_cfg::dflag, teonet_cfg::extended_l0_log_f, teonet_cfg::filter, free(), getDataPath(), teonet_cfg::host_name, teonet_cfg::hot_keys_f, KSN_BUFFER_SIZE, KSN_BUFFER_SM_SIZE, ksnet_formatMessage(), ksnet_getSysConfigDir(), teonet_cfg::l0_allow_f, teonet_cfg::l0_public_ipv4, teonet_cfg::l0_public_ipv6, teonet_cfg::l0_tcp_ip_remote, teonet_cfg::l0_tcp_port, teonet_cfg::log_disable_f, teonet_cfg::log_priority, teonet_cfg::logging_f, teonet_cfg::net_key, teonet_cfg::network, teonet_cfg::no_multi_thread_f, teonet_cfg::pn, teonet_cfg::port, teonet_cfg::port_inc_f, teonet_cfg::pp, teonet_cfg::r_host_addr, teonet_cfg::r_port, teonet_cfg::r_tcp_f, teonet_cfg::r_tcp_port, save_conf_back, teonet_cfg::send_ack_event_f, teonet_cfg::send_all_logs_f, teonet_cfg::show_connect_f, teonet_cfg::show_debug_f, teonet_cfg::show_debug_vv_f, teonet_cfg::show_debug_vvv_f, teonet_cfg::show_peers_f, teonet_cfg::show_tr_udp_f, teonet_cfg::sig_segv_f, teonet_cfg::statsd_ip, teonet_cfg::statsd_peers_f, teonet_cfg::statsd_port, teonet_cfg::tcp_allow_f, teonet_cfg::tcp_port, teonet_cfg::vpn_connect_f, teonet_cfg::vpn_dev_hwaddr, teonet_cfg::vpn_dev_name, teonet_cfg::vpn_ip, teonet_cfg::vpn_ip_net, and teonet_cfg::vpn_mtu.
Referenced by ksnetEvMgrInitPort(), ksnMultiInit(), and teoMultiAddNet().