bin/xapian-progsrv.cc File Reference

Remote server for use with ProgClient. More...

#include <config.h>
#include "remoteserver.h"
#include "gnu_getopt.h"
#include <cstdlib>
#include <iostream>
#include <string>

Include dependency graph for xapian-progsrv.cc:

Go to the source code of this file.

Defines

#define PROG_NAME   "xapian-progsrv"
#define PROG_DESC   "Piped server for use with Xapian's remote backend"
#define OPT_HELP   1
#define OPT_VERSION   2

Functions

static void show_usage ()
int main (int argc, char **argv)

Variables

static const char * opts = "t:w"
static struct option long_opts []


Detailed Description

Remote server for use with ProgClient.

Definition in file xapian-progsrv.cc.


Define Documentation

#define PROG_NAME   "xapian-progsrv"

Definition at line 33 of file xapian-progsrv.cc.

#define PROG_DESC   "Piped server for use with Xapian's remote backend"

Definition at line 34 of file xapian-progsrv.cc.

#define OPT_HELP   1

Definition at line 36 of file xapian-progsrv.cc.

#define OPT_VERSION   2

Definition at line 37 of file xapian-progsrv.cc.


Function Documentation

static void show_usage (  )  [static]

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

References PROG_NAME.

int main ( int  argc,
char **  argv 
)

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

References atoi(), gnu_getopt_long(), long_opts, OPT_HELP, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, RemoteServer::run(), and show_usage().


Variable Documentation

const char* opts = "t:w" [static]

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

Referenced by main(), and test_driver::parse_command_line().

struct option long_opts[] [static]

Initial value:

 {
    {"timeout",         required_argument,      0, 't'},
    {"writable",        no_argument,            0, 'w'},
    {"help",            no_argument,            0, OPT_HELP},
    {"version",         no_argument,            0, OPT_VERSION},
    {NULL, 0, 0, 0}
}

Definition at line 40 of file xapian-progsrv.cc.

Referenced by main(), and test_driver::parse_command_line().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.