xapian-core  1.4.26
Macros | Functions
remoteconnection.cc File Reference

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"
+ Include dependency graph for remoteconnection.cc:

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...
 

Detailed Description

RemoteConnection class used by the remote backend.

Definition in file remoteconnection.cc.

Macro Definition Documentation

◆ CHUNKSIZE

#define CHUNKSIZE   4096

◆ POLLSELECT [1/2]

#define POLLSELECT   "select"

◆ POLLSELECT [2/2]

#define POLLSELECT   "select"

Function Documentation

◆ throw_database_closed()

static void throw_database_closed ( )
static

◆ throw_network_error_insane_message_length()

static void throw_network_error_insane_message_length ( )
static

◆ throw_timeout()

static void throw_timeout ( const char *  msg,
const string &  context 
)
static

◆ write_all()

static void write_all ( int  fd,
const char *  p,
size_t  n 
)
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().