xapian-core  2.0.0
Functions
remote-database.cc File Reference

Remote backend database class. More...

#include <config.h>
#include "remote-database.h"
#include <signal.h>
#include "safesyssocket.h"
#include "api/msetinternal.h"
#include "api/smallvector.h"
#include "backends/contiguousalldocspostlist.h"
#include "backends/inmemory/inmemory_positionlist.h"
#include "net_postlist.h"
#include "remote-document.h"
#include "omassert.h"
#include "realtime.h"
#include "net/serialise.h"
#include "net/serialise-error.h"
#include "pack.h"
#include "remote_alltermslist.h"
#include "remote_keylist.h"
#include "remote_termlist.h"
#include "serialise-double.h"
#include "str.h"
#include "stringutils.h"
#include "weight/weightinternal.h"
#include <cerrno>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "xapian/constants.h"
#include "xapian/error.h"
#include "xapian/matchspy.h"
+ Include dependency graph for remote-database.cc:

Go to the source code of this file.

Functions

static bool is_intermediate_reply (int reply_code)
 Return true if further replies should be expected. More...
 
static void throw_invalid_operation (const char *message)
 
static void throw_handshake_failed (const string &context)
 
static void throw_connection_closed_unexpectedly ()
 

Detailed Description

Remote backend database class.

Definition in file remote-database.cc.

Function Documentation

◆ is_intermediate_reply()

static bool is_intermediate_reply ( int  reply_code)
inlinestatic

Return true if further replies should be expected.

Definition at line 63 of file remote-database.cc.

References REPLY_DOCDATA, REPLY_POSTLISTHEADER, REPLY_TERMLISTHEADER, and REPLY_VALUE.

Referenced by RemoteDatabase::get_message(), and RemoteDatabase::send_message().

◆ throw_connection_closed_unexpectedly()

static void throw_connection_closed_unexpectedly ( )
static

Definition at line 88 of file remote-database.cc.

Referenced by RemoteDatabase::get_message(), and RemoteDatabase::send_message().

◆ throw_handshake_failed()

static void throw_handshake_failed ( const string &  context)
static

Definition at line 80 of file remote-database.cc.

Referenced by RemoteDatabase::get_message(), and RemoteDatabase::update_stats().

◆ throw_invalid_operation()

static void throw_invalid_operation ( const char *  message)
static

Definition at line 73 of file remote-database.cc.

Referenced by RemoteDatabase::send_global_stats().