Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

poslib/server/configuration.h File Reference

Poslib server configuration. More...

Go to the source code of this file.


Functions

void  poslib_config_init ()
int  conf_get_request_id_expiration ()
int  conf_get_tcp_in_keepalive ()
int  conf_get_tcp_io_timeout ()
int  conf_get_thread_timeout ()
int  conf_get_waitthreadstime ()

Variables

int  max_threads
  Maximum number of threads.

int  conf_request_id_expiration
int  conf_tcp_in_keepalive
int  conf_tcp_io_timeout
int  conf_thread_timeout
int  conf_waitthreadstime

Detailed Description

Poslib server configuration.

This file contains some configurable settings for the Poslib server part. You should set these _before_ the server is running, as (as of Poslib 1.0.2), this data is not protected by a mutex.

Definition in file configuration.h.


Function Documentation

void poslib_config_init  ) 
 

Sets the configuration settings to their defaults.


Variable Documentation

int conf_request_id_expiration
 

The number of milliseconds before a request ID is re-used. Defaults to 60000.

Definition at line 48 of file configuration.h.

int conf_tcp_in_keepalive
 

The number of milliseconds an incoming TCP connection is kept alive. Defaults to 30000.

Definition at line 52 of file configuration.h.

int conf_tcp_io_timeout
 

The number of milliseconds we're willing to wait while reading from TCP. Defaults to 10000.

Definition at line 56 of file configuration.h.

int conf_thread_timeout
 

The number of milliseconds before an inactive thread is closed. Defaults to 10000.

Definition at line 60 of file configuration.h.

int conf_waitthreadstime
 

The number of milliseconds before threads that are not responding are closed down. Defaults to 10000.

Definition at line 64 of file configuration.h.

int max_threads
 

Maximum number of threads.

The maximum number of concurrent connection threads the server is willing to handle. After this limit is reached, new TCP connections will be closed directly, and UDP clients will merely receive a SRVFAIL answer. Defaults to 50.

Definition at line 45 of file configuration.h.


Generated on Fri Dec 24 19:55:15 2004 for Poslib by doxygen 1.3.7