#include <joedb/concurrency/Server_Connection.h>
|
| Server_Connection (Channel &channel, std::ostream *log=nullptr) |
|
size_t | pread (char *data, size_t size, int64_t offset) const |
|
int64_t | handshake (const Readonly_Journal &client_journal, Content_Check content_check) override |
| Called during Client construction.
|
|
int64_t | pull (Lock_Action lock_action, Data_Transfer data_transfer, Writable_Journal &client_journal, std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override |
| Pull from the connection.
|
|
int64_t | push (const Readonly_Journal &client_journal, int64_t from, int64_t until, Unlock_Action unlock_action) override |
| Push new data to the connection.
|
|
void | unlock () override |
| Unlock the connection.
|
|
| Server_Client (Channel &channel, std::ostream *log=nullptr) |
|
void | set_keep_alive_interval (std::chrono::seconds duration) |
|
int64_t | get_session_id () const |
|
Thread_Safe_Channel & | get_channel () |
|
void | ping () |
|
| ~Server_Client () |
|
virtual | ~Connection () |
|
Definition at line 10 of file Server_Connection.h.
◆ Server_Connection()
joedb::Server_Connection::Server_Connection |
( |
Channel & |
channel, |
|
|
std::ostream * |
log = nullptr |
|
) |
| |
|
inline |
◆ check_matching_content()
bool joedb::Server_Connection::check_matching_content |
( |
const Readonly_Journal & |
client_journal, |
|
|
int64_t |
server_checkpoint |
|
) |
| |
|
protected |
◆ handshake()
- Parameters
-
client_journal | may be used to check matching content |
content_check | indicates how matching content is tested |
- Return values
-
Reimplemented from joedb::Connection.
Definition at line 74 of file Server_Connection.cpp.
◆ pread()
size_t joedb::Server_Connection::pread |
( |
char * |
data, |
|
|
size_t |
size, |
|
|
int64_t |
offset |
|
) |
| const |
◆ pull()
- Parameters
-
lock_action | whether the connection should be locked before pulling |
data_transfer | whether data should be transferred |
client_journal | journal to pull into |
wait | duration during which the connection may wait for new data if the pull would otherwise be empty |
- Return values
-
Reimplemented from joedb::Connection.
Definition at line 89 of file Server_Connection.cpp.
◆ push()
◆ unlock()
void joedb::Server_Connection::unlock |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: