xapian-core
1.4.26
|
Remote backend database class. More...
#include <config.h>
#include "remote-database.h"
#include <signal.h>
#include "safesyssocket.h"
#include "autoptr.h"
#include "backends/inmemory/inmemory_positionlist.h"
#include "net_postlist.h"
#include "net_termlist.h"
#include "noreturn.h"
#include "remote-document.h"
#include "omassert.h"
#include "realtime.h"
#include "net/length.h"
#include "net/serialise.h"
#include "net/serialise-error.h"
#include "serialise-double.h"
#include "str.h"
#include "stringutils.h"
#include "weight/weightinternal.h"
#include <cerrno>
#include <string>
#include <vector>
#include "xapian/constants.h"
#include "xapian/error.h"
#include "xapian/matchspy.h"
Go to the source code of this file.
Functions | |
static bool | is_intermediate_reply (int msg_code, int reply_code) |
Return true if further replies should be expected. More... | |
static void | throw_handshake_failed (const string &context) |
static void | throw_connection_closed_unexpectedly () |
Remote backend database class.
Definition in file remote-database.cc.
|
inlinestatic |
Return true if further replies should be expected.
Definition at line 58 of file remote-database.cc.
References RemoteDatabase::context, MSG_TERMLIST, REPLY_ALLTERMS, REPLY_DOCDATA, REPLY_DOCLENGTH, REPLY_METADATAKEYLIST, REPLY_POSITIONLIST, REPLY_POSTLISTITEM, REPLY_POSTLISTSTART, REPLY_TERMLIST, REPLY_VALUE, and throw_handshake_failed().
Referenced by RemoteDatabase::get_message(), and RemoteDatabase::send_message().
|
static |
Definition at line 81 of file remote-database.cc.
Referenced by RemoteDatabase::get_message(), RemoteDatabase::send_message(), and throw_handshake_failed().
|
static |
Definition at line 73 of file remote-database.cc.
References throw_connection_closed_unexpectedly().
Referenced by RemoteDatabase::get_message(), is_intermediate_reply(), and RemoteDatabase::update_stats().