xapian-core  1.4.26
Public Member Functions | List of all members
OwnedRemoteConnection Class Reference

RemoteConnection which owns its own fd(s). More...

#include <remoteconnection.h>

+ Inheritance diagram for OwnedRemoteConnection:
+ Collaboration diagram for OwnedRemoteConnection:

Public Member Functions

 OwnedRemoteConnection (int fdin_, int fdout_, const std::string &context_=std::string())
 Constructor. More...
 
 ~OwnedRemoteConnection ()
 Destructor. More...
 
- Public Member Functions inherited from RemoteConnection
 RemoteConnection (int fdin_, int fdout_, const std::string &context_=std::string())
 Constructor. More...
 
bool ready_to_read () const
 See if there is data available to read. More...
 
int sniff_next_message_type (double end_time)
 Check what the next message type is. More...
 
int get_message (std::string &result, double end_time)
 Read one message from fdin. More...
 
int get_message_chunked (double end_time)
 Prepare to read one message from fdin in chunks. More...
 
int get_message_chunk (std::string &result, size_t at_least, double end_time)
 Read a chunk of a message from fdin. More...
 
int receive_file (const std::string &file, double end_time)
 Save the contents of a message as a file. More...
 
void send_message (char type, const std::string &s, double end_time)
 Send a message. More...
 
void send_file (char type, int fd, double end_time)
 Send the contents of a file as a message. More...
 
void shutdown ()
 Shutdown the connection. More...
 
void do_close ()
 Close the connection. More...
 

Additional Inherited Members

- Protected Attributes inherited from RemoteConnection
std::string context
 The context to report with errors. More...
 

Detailed Description

RemoteConnection which owns its own fd(s).

The object takes ownership of the fd(s) for the connection and will close them when it is destroyed.

Definition at line 403 of file remoteconnection.h.

Constructor & Destructor Documentation

◆ OwnedRemoteConnection()

OwnedRemoteConnection::OwnedRemoteConnection ( int  fdin_,
int  fdout_,
const std::string &  context_ = std::string() 
)
inline

Constructor.

Definition at line 406 of file remoteconnection.h.

◆ ~OwnedRemoteConnection()

OwnedRemoteConnection::~OwnedRemoteConnection ( )
inline

Destructor.

Definition at line 411 of file remoteconnection.h.


The documentation for this class was generated from the following file: