xapian-core
1.4.26
|
RemoteConnection which owns its own fd(s). More...
#include <remoteconnection.h>
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... | |
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.
|
inline |
Constructor.
Definition at line 406 of file remoteconnection.h.
|
inline |
Destructor.
Definition at line 411 of file remoteconnection.h.