#include <joedb/concurrency/Server_Connection.h>
|
| | Server_Connection (Channel &channel, Logger &logger=Logger::dummy_logger, std::chrono::milliseconds keep_alive_interval=std::chrono::seconds(0)) |
| |
| 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.
|
| |
| bool | is_pullonly () const override |
| |
| | Server_Client (Channel &channel, Logger &logger=Logger::dummy_logger, std::chrono::milliseconds keep_alive_interval=std::chrono::seconds(0)) |
| |
| int64_t | get_session_id () const |
| |
| Thread_Safe< Channel & > & | get_channel () |
| |
| void | ping () |
| |
| | ~Server_Client () |
| |
| virtual | ~Logger ()=default |
| |
| virtual | ~Connection () |
| |
Definition at line 10 of file Server_Connection.h.
◆ Server_Connection()
| joedb::Server_Connection::Server_Connection |
( |
Channel & |
channel, |
|
|
Logger & |
logger = Logger::dummy_logger, |
|
|
std::chrono::milliseconds |
keep_alive_interval = std::chrono::seconds(0) |
|
) |
| |
|
inline |
◆ handshake()
- Parameters
-
| client_journal | may be used to check matching content |
| content_check | indicates how matching content is tested |
- Returns
- connection checkpoint
Reimplemented from joedb::Connection.
Definition at line 36 of file Server_Connection.cpp.
◆ is_pullonly()
| bool joedb::Server_Connection::is_pullonly |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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 |
- Returns
- connection checkpoint
Reimplemented from joedb::Connection.
Definition at line 79 of file Server_Connection.cpp.
◆ push()
◆ unlock()
| void joedb::Server_Connection::unlock |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: