xapian-core
1.4.26
|
tcp daemon for use with Xapian's remote backend More...
#include <config.h>
#include <cstdlib>
#include <iostream>
#include <string>
#include "gnu_getopt.h"
#include "xapian/constants.h"
#include "xapian/error.h"
#include "net/remotetcpserver.h"
#include "net/remoteserver.h"
#include "stringutils.h"
Go to the source code of this file.
Macros | |
#define | MSECS_IDLE_TIMEOUT_DEFAULT 60000 |
#define | MSECS_ACTIVE_TIMEOUT_DEFAULT 15000 |
#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 (RemoteTcpServer &server) |
static void | show_usage () |
int | main (int argc, char **argv) |
Variables | |
static const char * | opts = "I:p:a:i:t:oqw" |
static const struct option | long_opts [] |
tcp daemon for use with Xapian's remote backend
Definition in file xapian-tcpsrv.cc.
#define MSECS_ACTIVE_TIMEOUT_DEFAULT 15000 |
Definition at line 50 of file xapian-tcpsrv.cc.
Referenced by main(), and show_usage().
#define MSECS_IDLE_TIMEOUT_DEFAULT 60000 |
Definition at line 49 of file xapian-tcpsrv.cc.
Referenced by main(), and show_usage().
#define OPT_HELP 1 |
Definition at line 55 of file xapian-tcpsrv.cc.
Referenced by main().
#define OPT_VERSION 2 |
Definition at line 56 of file xapian-tcpsrv.cc.
Referenced by main().
#define PROG_DESC "TCP daemon for use with Xapian's remote backend" |
Definition at line 53 of file xapian-tcpsrv.cc.
Referenced by main().
#define PROG_NAME "xapian-tcpsrv" |
Definition at line 52 of file xapian-tcpsrv.cc.
Referenced by main(), and show_usage().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 91 of file xapian-tcpsrv.cc.
References Xapian::DB_CREATE_OR_OPEN, dbnames, Xapian::Error::get_description(), gnu_getopt_long(), MSECS_ACTIVE_TIMEOUT_DEFAULT, MSECS_IDLE_TIMEOUT_DEFAULT, OPT_HELP, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, register_user_weighting_schemes(), show_usage(), and verbose.
|
static |
Definition at line 41 of file xapian-tcpsrv.cc.
References RemoteTcpServer::set_registry().
Referenced by main().
|
static |
Definition at line 73 of file xapian-tcpsrv.cc.
References MSECS_ACTIVE_TIMEOUT_DEFAULT, MSECS_IDLE_TIMEOUT_DEFAULT, PROG_NAME, and STRINGIZE.
Referenced by main().
|
static |
Definition at line 59 of file xapian-tcpsrv.cc.
|
static |
Definition at line 58 of file xapian-tcpsrv.cc.
Referenced by main().