Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
conf.h File Reference

Go to the source code of this file.

Data Structures

struct  teonet_cfg
 

Macros

#define KSN_BUFFER_DB_SIZE   2048
 File: conf.h Author: Kirill Scherba. More...
 
#define KSN_BUFFER_SIZE   1024
 Size of buffer for string variables. More...
 
#define KSN_BUFFER_SM_SIZE   256
 Size of small buffer for string. More...
 
#define KSN_BUFFER_64_SIZE   64
 Size of small buffer for string. More...
 
#define KSN_BUFFER_32_SIZE   32
 Size of small buffer for string. More...
 
#define KSN_MAX_HOST_NAME   31
 
#define NUMBER_TRY_PORTS   1000
 
#define DEBUG_KSNET   1
 
#define KSNET_EVENT_MGR_TIMER   0.25
 Main event manager timer interval. More...
 
#define KSNET_PORT_DEFAULT   "9000"
 Main network port. More...
 
#define KSNET_CRYPT   1
 Crypt packages. More...
 
#define M_ENAMBE_CQUE   1
 
#define M_ENAMBE_STREAM   1
 
#define M_ENAMBE_PBLKF   1
 
#define M_ENAMBE_VPN   1
 
#define M_ENAMBE_TCP   1
 
#define M_ENAMBE_L0s   1
 
#define M_ENAMBE_TCP_P   1
 
#define M_ENAMBE_TUN   1
 
#define M_ENAMBE_TERM   1
 
#define M_ENAMBE_ASYNC   1
 
#define M_ENAMBE_METRIC   1
 
#define M_ENAMBE_LOGGING_SERVER   1
 
#define M_ENAMBE_LOGGING_CLIENT   1
 
#define M_ENAMBE_LOG_READER   1
 
#define TRUE   1
 
#define FALSE   0
 

Typedefs

typedef struct teonet_cfg teonet_cfg
 

Functions

void ksnet_addHWAddrConfig (teonet_cfg *conf, char *hwaddr)
 
void read_config (teonet_cfg *conf, int port_param)
 Read configuration parameters from file. More...
 
void ksnet_configInit (teonet_cfg *teo_cfg, void *ke)
 Get configuration parameters. More...
 

Macro Definition Documentation

#define DEBUG_KSNET   1
#define FALSE   0

Referenced by check_pid(), and start_stop_daemon().

#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_MAX_HOST_NAME   31
#define KSNET_CRYPT   1

Crypt packages.

Referenced by set_defaults().

#define KSNET_EVENT_MGR_TIMER   0.25

Main event manager timer interval.

Examples:
teomulti_t.c.

Referenced by ksnetEvMgrRun(), main(), and timer_cb().

#define KSNET_PORT_DEFAULT   "9000"

Main network port.

Referenced by opt_usage(), and set_defaults().

#define M_ENAMBE_ASYNC   1
#define M_ENAMBE_CQUE   1
#define M_ENAMBE_L0s   1
#define M_ENAMBE_LOG_READER   1
#define M_ENAMBE_LOGGING_CLIENT   1

Referenced by opt_usage().

#define M_ENAMBE_LOGGING_SERVER   1

Referenced by opt_usage().

#define M_ENAMBE_METRIC   1
#define M_ENAMBE_PBLKF   1
#define M_ENAMBE_STREAM   1
#define M_ENAMBE_TCP   1
#define M_ENAMBE_TCP_P   1
#define M_ENAMBE_TERM   1
#define M_ENAMBE_TUN   1
#define M_ENAMBE_VPN   1

Referenced by hotkeys_cb(), and opt_usage().

#define NUMBER_TRY_PORTS   1000
#define TRUE   1

Referenced by check_pid().

Typedef Documentation

typedef struct teonet_cfg teonet_cfg

Function Documentation

void ksnet_addHWAddrConfig ( teonet_cfg conf,
char *  hwaddr 
)
void ksnet_configInit ( teonet_cfg teo_cfg,
void *  ke 
)

Get configuration parameters.

Todo:
: Set port param

References ke, teonet_cfg::ke, and set_defaults().

Referenced by ksnetEvMgrInitPort().

void read_config ( teonet_cfg conf,
int  port_param 
)