xapian-core  1.4.26
Macros | Functions | Variables
xapian-progsrv.cc File Reference

Remote server for use with ProgClient. More...

#include <config.h>
#include "net/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.

Macros

#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 const struct option long_opts []
 

Detailed Description

Remote server for use with ProgClient.

Definition in file xapian-progsrv.cc.

Macro Definition Documentation

◆ OPT_HELP

#define OPT_HELP   1

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

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

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

Referenced by main().

◆ PROG_DESC

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

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

Referenced by main().

◆ PROG_NAME

#define PROG_NAME   "xapian-progsrv"

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

Referenced by main(), and show_usage().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ show_usage()

static void show_usage ( )
static

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

References PROG_NAME.

Referenced by main().

Variable Documentation

◆ long_opts

const 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}
}
#define OPT_HELP
#define no_argument
Definition: gnu_getopt.h:79
#define required_argument
Definition: gnu_getopt.h:80
#define OPT_VERSION

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

◆ opts

const char* opts = "t:w"
static