|
xapian-core
2.0.0
|
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... | |
| int | get_read_fd () const |
| Return the underlying fd this remote connection reads from. 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, std::string_view 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... | |
| const std::string & | get_context () const |
| Return the context to report with errors. 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 275 of file remoteconnection.h.
|
inline |
Constructor.
Definition at line 278 of file remoteconnection.h.
|
inline |
Destructor.
Definition at line 283 of file remoteconnection.h.
References RemoteConnection::do_close().