Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teonet_cfg Struct Reference

#include <conf.h>

Data Fields

void * ke
 Poiner to ksnetEventManager. More...
 
int show_connect_f
 Show connection message. More...
 
int show_debug_f
 Show debug messages. More...
 
int show_debug_vv_f
 Show debug vv messages. More...
 
int show_debug_vvv_f
 Show debug vvv messages. More...
 
int show_peers_f
 Show peers at start up. More...
 
int hot_keys_f
 Show hotkeys when press h. More...
 
int crypt_f
 Encrypt/Decrypt packets. More...
 
int vpn_connect_f
 Start VPN flag. More...
 
int show_tr_udp_f
 Show TR-UDP statistic at start up. More...
 
int send_ack_event_f
 Send TR-UDP ACK event (EV_K_RECEIVED_ACK) to the teonet event loop. More...
 
int sig_segv_f
 SIGSEGV processing. More...
 
int block_cli_input_f
 Block teonet CLI input (for using in GUI application) More...
 
int logging_f
 Start logging server. More...
 
int log_disable_f
 Disable send log to logging server. More...
 
int send_all_logs_f
 Send all logs to logging server (by default only ###) More...
 
int color_output_disable_f
 Disable color output flag. More...
 
int extended_l0_log_f
 Extended L0 log output flag. More...
 
int no_multi_thread_f
 Don't try multi thread mode in async calls. More...
 
int dflag
 Start application in Daemon mode. More...
 
int kflag
 Kill application in Daemon mode. More...
 
char network [KSN_BUFFER_SM_SIZE/2]
 Network. More...
 
char net_key [KSN_BUFFER_SM_SIZE/2]
 Network key. More...
 
char auth_secret [KSN_BUFFER_SM_SIZE/2]
 Auth secret. More...
 
char app_prompt [KSN_BUFFER_SM_SIZE/2]
 Application prompt. More...
 
char app_name [KSN_BUFFER_SM_SIZE/2]
 Application name. More...
 
char app_description [KSN_BUFFER_SM_SIZE/2]
 Application description. More...
 
int app_argc
 Number of requered application parameters. More...
 
char ** app_argv
 Array of application parameters. More...
 
long port
 This host port number. More...
 
int port_inc_f
 Increment host port if busy. More...
 
char host_name [KSN_MAX_HOST_NAME]
 This host name. More...
 
int tcp_allow_f
 Allow TCP Proxy connections to this host. More...
 
long tcp_port
 TCP Proxy port number. More...
 
int l0_allow_f
 Allow L0 Server and l0 client connections to this host. More...
 
char l0_tcp_ip_remote [KSN_BUFFER_SM_SIZE/2]
 L0 Server remote IP address (send clients to connect to server) More...
 
long l0_tcp_port
 L0 Server TCP port number. More...
 
char filter [KSN_BUFFER_SM_SIZE/2]
 Display log filter. More...
 
char r_host_addr_opt [KSN_BUFFER_SM_SIZE/2]
 Remote host internet address or dns name derived from options. More...
 
char r_host_addr [KSN_BUFFER_SM_SIZE/2]
 Remote host internet address. More...
 
long r_port
 Remote host port. More...
 
long r_tcp_port
 Remote host tcp port. More...
 
int r_tcp_f
 Connect to TCP Proxy R-Host. More...
 
char l0_public_ipv4 [KSN_BUFFER_SM_SIZE/2]
 L0 Server public IPv4 address (send clients to connect to server) More...
 
char l0_public_ipv6 [KSN_BUFFER_SM_SIZE/2]
 L0 Server public IPv6 address (send clients to connect to server) More...
 
char vpn_dev_name [KSN_MAX_HOST_NAME]
 VPN Interface device name. More...
 
char vpn_dev_hwaddr [KSN_MAX_HOST_NAME]
 VPN Interface MAC address. More...
 
char vpn_ip [KSN_BUFFER_SM_SIZE/2]
 VPN Interface IP. More...
 
long vpn_ip_net
 VPN Interface network mask. More...
 
long vpn_mtu
 VPN Interface MTU. More...
 
long log_priority
 Syslog priority. More...
 
char log_prefix [KSN_BUFFER_SM_SIZE]
 
char statsd_ip [KSN_BUFFER_SM_SIZE/2]
 
long statsd_port
 
int statsd_peers_f
 
int pp
 
char pn [KSN_BUFFER_SM_SIZE]
 
char r_host_name [KSN_MAX_HOST_NAME]
 Remote host name (if connected) More...
 

Field Documentation

int teonet_cfg::app_argc

Number of requered application parameters.

Referenced by ksnetEvMgrInitPort().

char** teonet_cfg::app_argv

Array of application parameters.

Examples:
teoack.c, teoackm.c, teol0cli.c, teosscr.c, teostream.c, and teotcp.c.

Referenced by event_cb(), event_cb_client(), teo::Teonet::getParam(), and ksnetEvMgrInitPort().

char teonet_cfg::app_description[KSN_BUFFER_SM_SIZE/2]

Application description.

Referenced by ksnet_optRead(), and ksnet_optSetApp().

char teonet_cfg::app_name[KSN_BUFFER_SM_SIZE/2]

Application name.

Referenced by ksnet_optRead(), ksnet_optSetApp(), set_defaults(), and teoLogPuts().

char teonet_cfg::app_prompt[KSN_BUFFER_SM_SIZE/2]

Application prompt.

Referenced by ksnet_optSetApp().

char teonet_cfg::auth_secret[KSN_BUFFER_SM_SIZE/2]

Auth secret.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::block_cli_input_f

Block teonet CLI input (for using in GUI application)

Referenced by ksnet_optRead(), ksnetEvMgrInitPort(), modules_init(), read_config(), and set_defaults().

int teonet_cfg::color_output_disable_f

Disable color output flag.

Referenced by ksnet_optRead(), ksnet_printf(), ksnetArpShow(), read_config(), and set_defaults().

int teonet_cfg::crypt_f

Encrypt/Decrypt packets.

Referenced by ksnCoreProcessPacket(), read_config(), set_defaults(), and trudp_send_event_ack_to_app().

int teonet_cfg::dflag

Start application in Daemon mode.

Referenced by ksnet_optRead(), modules_init(), read_config(), and start_stop_daemon().

int teonet_cfg::extended_l0_log_f

Extended L0 log output flag.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::filter[KSN_BUFFER_SM_SIZE/2]

Display log filter.

Referenced by ksnet_optRead(), modules_init(), read_config(), and set_defaults().

int teonet_cfg::hot_keys_f

Show hotkeys when press h.

Referenced by ksnet_optRead(), and read_config().

void* teonet_cfg::ke

Poiner to ksnetEventManager.

Referenced by ksnet_configInit(), and ksnet_printf().

int teonet_cfg::kflag

Kill application in Daemon mode.

Referenced by ksnet_optRead(), and start_stop_daemon().

int teonet_cfg::l0_allow_f

Allow L0 Server and l0 client connections to this host.

Referenced by cmd_l0_broadcast_cb(), ksnCoreSendCmdto(), ksnet_optRead(), ksnLNullClientsList(), read_config(), set_defaults(), and teoGetHostInfo().

char teonet_cfg::l0_public_ipv4[KSN_BUFFER_SM_SIZE/2]

L0 Server public IPv4 address (send clients to connect to server)

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::l0_public_ipv6[KSN_BUFFER_SM_SIZE/2]

L0 Server public IPv6 address (send clients to connect to server)

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::l0_tcp_ip_remote[KSN_BUFFER_SM_SIZE/2]

L0 Server remote IP address (send clients to connect to server)

Referenced by ksnet_optRead(), read_config(), and set_defaults().

long teonet_cfg::l0_tcp_port

L0 Server TCP port number.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::log_disable_f

Disable send log to logging server.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::log_prefix[KSN_BUFFER_SM_SIZE]

Referenced by ksnet_printf(), and set_defaults().

long teonet_cfg::log_priority

Syslog priority.

Referenced by ksnet_optRead(), ksnet_printf(), read_config(), and set_defaults().

int teonet_cfg::logging_f

Start logging server.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::net_key[KSN_BUFFER_SM_SIZE/2]

Network key.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::no_multi_thread_f

Don't try multi thread mode in async calls.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

char teonet_cfg::pn[KSN_BUFFER_SM_SIZE]

Referenced by read_config().

int teonet_cfg::port_inc_f

Increment host port if busy.

Referenced by ksnCoreBind(), ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::pp

Referenced by read_config().

char teonet_cfg::r_host_addr[KSN_BUFFER_SM_SIZE/2]

Remote host internet address.

Referenced by connect_r_host_cb(), ksnCoreCheckNewPeer(), read_config(), resolveDnsName(), and set_defaults().

char teonet_cfg::r_host_addr_opt[KSN_BUFFER_SM_SIZE/2]

Remote host internet address or dns name derived from options.

Referenced by ksnet_optRead(), resolveDnsName(), and set_defaults().

char teonet_cfg::r_host_name[KSN_MAX_HOST_NAME]
long teonet_cfg::r_port
int teonet_cfg::r_tcp_f
long teonet_cfg::r_tcp_port

Remote host tcp port.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::send_ack_event_f

Send TR-UDP ACK event (EV_K_RECEIVED_ACK) to the teonet event loop.

Referenced by ksnet_optRead(), ksnetAllowAckEvent(), read_config(), and set_defaults().

int teonet_cfg::send_all_logs_f

Send all logs to logging server (by default only ###)

Referenced by ksnet_optRead(), and read_config().

int teonet_cfg::show_connect_f

Show connection message.

Referenced by ksnet_optRead(), ksnet_printf(), read_config(), and set_defaults().

int teonet_cfg::show_debug_f

Show debug messages.

Referenced by ksnet_optRead(), ksnet_printf(), read_config(), and set_defaults().

int teonet_cfg::show_debug_vv_f

Show debug vv messages.

Referenced by ksnet_optRead(), ksnet_printf(), read_config(), and set_defaults().

int teonet_cfg::show_debug_vvv_f

Show debug vvv messages.

Referenced by ksnet_optRead(), ksnet_printf(), read_config(), and set_defaults().

int teonet_cfg::show_peers_f

Show peers at start up.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::show_tr_udp_f

Show TR-UDP statistic at start up.

Examples:
teoackm.c.

Referenced by event_cb(), ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::sig_segv_f

SIGSEGV processing.

Referenced by ksnet_optRead(), ksnetEvMgrRun(), read_config(), and set_defaults().

char teonet_cfg::statsd_ip[KSN_BUFFER_SM_SIZE/2]
int teonet_cfg::statsd_peers_f
long teonet_cfg::statsd_port
int teonet_cfg::tcp_allow_f

Allow TCP Proxy connections to this host.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

long teonet_cfg::tcp_port

TCP Proxy port number.

Referenced by ksnet_optRead(), read_config(), and set_defaults().

int teonet_cfg::vpn_connect_f

Start VPN flag.

Referenced by ksnet_optRead(), read_config(), set_defaults(), and teoGetHostInfo().

char teonet_cfg::vpn_dev_hwaddr[KSN_MAX_HOST_NAME]

VPN Interface MAC address.

Referenced by read_config(), and set_defaults().

char teonet_cfg::vpn_dev_name[KSN_MAX_HOST_NAME]

VPN Interface device name.

Referenced by read_config(), and set_defaults().

char teonet_cfg::vpn_ip[KSN_BUFFER_SM_SIZE/2]

VPN Interface IP.

Referenced by getIPs(), ksnet_optRead(), read_config(), and set_defaults().

long teonet_cfg::vpn_ip_net

VPN Interface network mask.

Referenced by read_config(), and set_defaults().

long teonet_cfg::vpn_mtu

VPN Interface MTU.

Referenced by ksnet_optRead(), read_config(), and set_defaults().


The documentation for this struct was generated from the following file: