xapian-core  1.4.27
Classes | Macros | Functions
remoteconnection.h File Reference

RemoteConnection class used by the remote backend. More...

#include <cerrno>
#include <string>
#include "remoteprotocol.h"
#include "safenetdb.h"
#include "safeunistd.h"
#include "safesyssocket.h"
+ Include dependency graph for remoteconnection.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RemoteConnection
 A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a remote machine. More...
 
class  OwnedRemoteConnection
 RemoteConnection which owns its own fd(s). More...
 

Macros

#define CLOSESOCKET(S)   close(S)
 
#define C(X)   ((X) < 0 ? 2 : 1)
 

Functions

int socket_errno ()
 
int eai_to_xapian (int e)
 

Detailed Description

RemoteConnection class used by the remote backend.

Definition in file remoteconnection.h.

Macro Definition Documentation

◆ C

#define C (   X)    ((X) < 0 ? 2 : 1)

◆ CLOSESOCKET

#define CLOSESOCKET (   S)    close(S)

Definition at line 110 of file remoteconnection.h.

Referenced by TcpClient::open_socket().

Function Documentation

◆ eai_to_xapian()

int eai_to_xapian ( int  e)
inline

Definition at line 113 of file remoteconnection.h.

References C.

Referenced by Resolver::Resolver().

◆ socket_errno()

int socket_errno ( )
inline

Definition at line 108 of file remoteconnection.h.

Referenced by TcpClient::open_socket().