Main Page Class Hierarchy Compound List File List Compound Members File Members

# serverbase.h File Reference

`#include <socket_exception.h>`
`#include <platform.h>`
`#include <socket_ew.h>`
`#include <transport.h>`
`#include <threadableobject.h>`
`#include <time.h>`
`#include <configurable.h>`
`#include <map>`
`#include <vector>`
`#include <worm_types.h>`
`#include <worm_defs.h>`
`#include <worm_signal.h>`
`#include <logger.h>`
`#include <globalutils.h>`
`#include <configsource.h>`

Go to the source code of this file.

## Compounds
struct | _ServiceThreadInfoStruct
class | WormServerBase
## Defines
#define | EWserverbaseH
#define | thr_ret void fun
#define | _USING_EW_XPORT 1
#define | SERVE_MAX_THREADS 100
#define | WAIT_FOR_SERVICE_THREAD 3000
#define | SERVICE_THREAD_SLEEP_MS 1000
#define | SERVICE_THREAD_PULSE_MAX 10
#define | THREAD_STACK (unsigned int)8096
#define | MIN_RECV_TIMEOUT_MS 50
## Typedefs
typedef char | CLIENT_IPADDR [16]
typedef _ServiceThreadInfoStruct | ServiceThreadInfoStruct
typedef std::map< SOCKET, ServiceThreadInfoStruct > | SERVICETHREAD_MAP
typedef SERVICETHREAD_MAP::iterator | SERVICETHREAD_MAP_ITERATOR
typedef std::vector< SOCKET > | SERVICETHREADID_VECTOR
## Enumerations
enum | WORM_SERVER_THREAD_STATE { THREAD_ERROR = -1, THREAD_STARTING = 0, THREAD_INITIALIZING = 1, THREAD_WAITING = 2, THREAD_PROCESSING = 3, THREAD_BLOCKINGSOCKET = 4, THREAD_DISCONNECTED = 5, THREAD_COMPLETED = 10 }

## Define Documentation

#define _USING_EW_XPORT 1

| Definition at line 23 of file serverbase.h.

#define EWserverbaseH

| Definition at line 6 of file serverbase.h.

#define MIN_RECV_TIMEOUT_MS 50

| Definition at line 56 of file serverbase.h. Referenced by WormServerBase::CheckConfig(), and MutableServerBase::CheckConfig().

#define SERVE_MAX_THREADS 100

| Definition at line 44 of file serverbase.h. Referenced by WormServerBase::HandleConfigLine(), and WormServerBase::SetMaxThreads().

#define SERVICE_THREAD_PULSE_MAX 10

| Definition at line 49 of file serverbase.h. Referenced by WormServerBase::Listener().

#define SERVICE_THREAD_SLEEP_MS 1000

| Definition at line 47 of file serverbase.h.

#define thr_ret void fun

| Definition at line 19 of file serverbase.h.

#define THREAD_STACK (unsigned int)8096

| Definition at line 53 of file serverbase.h.

#define WAIT_FOR_SERVICE_THREAD 3000

| Definition at line 45 of file serverbase.h.

## Typedef Documentation

typedef char CLIENT_IPADDR[16]

| Definition at line 71 of file serverbase.h.

typedef std::map<SOCKET, ServiceThreadInfoStruct> SERVICETHREAD_MAP

| Definition at line 83 of file serverbase.h.

typedef SERVICETHREAD_MAP::iterator SERVICETHREAD_MAP_ITERATOR

| Definition at line 84 of file serverbase.h. Referenced by WormServerBase::Listener().

typedef std::vector<SOCKET> SERVICETHREADID_VECTOR

| Definition at line 86 of file serverbase.h. Referenced by WormServerBase::Listener().

typedef struct _ServiceThreadInfoStruct ServiceThreadInfoStruct

## Enumeration Type Documentation

enum WORM_SERVER_THREAD_STATE

  | Enumeration values:
  THREAD_ERROR |
  THREAD_STARTING |
  THREAD_INITIALIZING |
  THREAD_WAITING |
  THREAD_PROCESSING |
  THREAD_BLOCKINGSOCKET |
  THREAD_DISCONNECTED |
  THREAD_COMPLETED |
Definition at line 59 of file serverbase.h.