bin/xapian-tcpsrv.cc File Reference

#include <config.h>
#include <cstdlib>
#include "safeerrno.h"
#include <iostream>
#include <string>
#include "gnu_getopt.h"
#include "xapian/error.h"
#include "remotetcpserver.h"

Include dependency graph for xapian-tcpsrv.cc:

Go to the source code of this file.

Defines

#define PROG_NAME   "xapian-tcpsrv"
#define PROG_DESC   "TCP daemon for use with Xapian's remote backend"
#define OPT_HELP   1
#define OPT_VERSION   2

Functions

static void register_user_weighting_schemes (TcpServer &server)
static void show_usage ()
int main (int argc, char **argv)

Variables

const int MSECS_IDLE_TIMEOUT_DEFAULT = 60000
const int MSECS_ACTIVE_TIMEOUT_DEFAULT = 15000
static const char * opts = "I:p:a:i:t:oqw"
static struct option long_opts []


Define Documentation

#define OPT_HELP   1

Definition at line 54 of file xapian-tcpsrv.cc.

#define OPT_VERSION   2

Definition at line 55 of file xapian-tcpsrv.cc.

#define PROG_DESC   "TCP daemon for use with Xapian's remote backend"

Definition at line 52 of file xapian-tcpsrv.cc.

#define PROG_NAME   "xapian-tcpsrv"

Definition at line 51 of file xapian-tcpsrv.cc.


Function Documentation

int main ( int  argc,
char **  argv 
)

static void register_user_weighting_schemes ( TcpServer &  server  )  [static]

Definition at line 39 of file xapian-tcpsrv.cc.

Referenced by main().

static void show_usage (  )  [static]

Definition at line 72 of file xapian-tcpsrv.cc.

References MSECS_ACTIVE_TIMEOUT_DEFAULT, MSECS_IDLE_TIMEOUT_DEFAULT, and PROG_NAME.

Referenced by main().


Variable Documentation

struct option long_opts[] [static]

Initial value:

 {
    {"interface",       required_argument,      0, 'I'},
    {"port",            required_argument,      0, 'p'},
    {"active-timeout",  required_argument,      0, 'a'},
    {"idle-timeout",    required_argument,      0, 'i'},
    {"timeout",         required_argument,      0, 't'},
    {"one-shot",        no_argument,            0, 'o'},
    {"quiet",           no_argument,            0, 'q'},
    {"writable",        no_argument,            0, 'w'},
    {"help",            no_argument,            0, OPT_HELP},
    {"version",         no_argument,            0, OPT_VERSION},
    {NULL, 0, 0, 0}
}

Definition at line 58 of file xapian-tcpsrv.cc.

const int MSECS_ACTIVE_TIMEOUT_DEFAULT = 15000

Definition at line 49 of file xapian-tcpsrv.cc.

Referenced by main(), and show_usage().

const int MSECS_IDLE_TIMEOUT_DEFAULT = 60000

Definition at line 48 of file xapian-tcpsrv.cc.

Referenced by main(), and show_usage().

const char* opts = "I:p:a:i:t:oqw" [static]

Definition at line 57 of file xapian-tcpsrv.cc.

Referenced by main().


Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.