xapian-core
1.4.27
|
RemoteConnection class used by the remote backend. More...
#include <config.h>
#include "remoteconnection.h"
#include <xapian/error.h>
#include "safefcntl.h"
#include "safeunistd.h"
#include "safesysselect.h"
#include <algorithm>
#include <cerrno>
#include <climits>
#include <cstdint>
#include <string>
#include "debuglog.h"
#include "fd.h"
#include "filetests.h"
#include "noreturn.h"
#include "omassert.h"
#include "overflow.h"
#include "posixy_wrapper.h"
#include "realtime.h"
#include "length.h"
#include "socket_utils.h"
Go to the source code of this file.
Macros | |
#define | CHUNKSIZE 4096 |
#define | POLLSELECT "select" |
#define | POLLSELECT "select" |
Functions | |
static void | throw_database_closed () |
static void | throw_network_error_insane_message_length () |
static void | throw_timeout (const char *, const string &) |
static void | write_all (int fd, const char *p, size_t n) |
Write n bytes from block pointed to by p to file descriptor fd. More... | |
RemoteConnection class used by the remote backend.
Definition in file remoteconnection.cc.
#define CHUNKSIZE 4096 |
Definition at line 58 of file remoteconnection.cc.
Referenced by RemoteConnection::read_at_least(), RemoteConnection::receive_file(), and RemoteConnection::send_file().
#define POLLSELECT "select" |
Referenced by RemoteConnection::send_file(), and RemoteConnection::send_message().
#define POLLSELECT "select" |
|
static |
Definition at line 62 of file remoteconnection.cc.
References throw_network_error_insane_message_length().
Referenced by RemoteConnection::get_message(), RemoteConnection::get_message_chunk(), RemoteConnection::get_message_chunked(), InMemoryDatabase::is_closed(), RemoteConnection::ready_to_read(), RemoteConnection::receive_file(), RemoteConnection::send_file(), RemoteConnection::send_message(), GlassTable::set_changes(), ChertTable::set_max_item_size(), and RemoteConnection::sniff_next_message_type().
|
static |
Definition at line 69 of file remoteconnection.cc.
References throw_timeout().
Referenced by RemoteConnection::get_message(), RemoteConnection::get_message_chunked(), and throw_database_closed().
|
static |
Definition at line 76 of file remoteconnection.cc.
References add_overflows().
Referenced by RemoteConnection::do_close(), RemoteConnection::read_at_least(), RemoteConnection::send_file(), RemoteConnection::send_message(), and throw_network_error_insane_message_length().
|
static |
Write n bytes from block pointed to by p to file descriptor fd.
Definition at line 748 of file remoteconnection.cc.
Referenced by RemoteConnection::receive_file().