Joedb 9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
joedb::Server_Client Class Reference

#include <joedb/concurrency/Server_Client.h>

Inheritance diagram for joedb::Server_Client:
Inheritance graph
[legend]
Collaboration diagram for joedb::Server_Client:
Collaboration graph
[legend]

Public Member Functions

 Server_Client (Channel &channel)
 
void set_log (std::ostream *stream)
 
void set_keep_alive_interval (std::chrono::seconds duration)
 
int64_t get_session_id () const
 
Thread_Safe_Channelget_channel ()
 
void ping ()
 
 ~Server_Client ()
 
- Public Member Functions inherited from joedb::Posthumous_Thrower
void set_catcher (Posthumous_Catcher &new_catcher) noexcept
 

Protected Member Functions

void download (Async_Writer &writer, Channel_Lock &lock, int64_t size) const
 
- Protected Member Functions inherited from joedb::Posthumous_Thrower
void postpone_exception (const char *message=nullptr) noexcept
 

Protected Attributes

Thread_Safe_Channel channel
 
std::ostream * log
 
Buffer< 13 > buffer
 
int64_t session_id
 
bool pullonly_server
 
int64_t server_checkpoint
 

Friends

class Server_File
 

Detailed Description

Definition at line 17 of file Server_Client.h.

Constructor & Destructor Documentation

◆ Server_Client()

joedb::Server_Client::Server_Client ( Channel channel)

Definition at line 161 of file Server_Client.cpp.

◆ ~Server_Client()

joedb::Server_Client::~Server_Client ( )

Definition at line 173 of file Server_Client.cpp.

Member Function Documentation

◆ download()

void joedb::Server_Client::download ( Async_Writer writer,
Channel_Lock lock,
int64_t  size 
) const
protected

Definition at line 128 of file Server_Client.cpp.

◆ get_channel()

Thread_Safe_Channel & joedb::Server_Client::get_channel ( )
inline

Definition at line 56 of file Server_Client.h.

◆ get_session_id()

int64_t joedb::Server_Client::get_session_id ( ) const
inline

Definition at line 55 of file Server_Client.h.

◆ ping()

void joedb::Server_Client::ping ( )

Definition at line 26 of file Server_Client.cpp.

◆ set_keep_alive_interval()

void joedb::Server_Client::set_keep_alive_interval ( std::chrono::seconds  duration)
inline

Definition at line 50 of file Server_Client.h.

◆ set_log()

void joedb::Server_Client::set_log ( std::ostream *  stream)
inline

Definition at line 45 of file Server_Client.h.

Friends And Related Symbol Documentation

◆ Server_File

friend class Server_File
friend

Definition at line 19 of file Server_Client.h.

Member Data Documentation

◆ buffer

Buffer<13> joedb::Server_Client::buffer
mutableprotected

Definition at line 34 of file Server_Client.h.

◆ channel

Thread_Safe_Channel joedb::Server_Client::channel
mutableprotected

Definition at line 31 of file Server_Client.h.

◆ log

std::ostream* joedb::Server_Client::log
protected

Definition at line 32 of file Server_Client.h.

◆ pullonly_server

bool joedb::Server_Client::pullonly_server
protected

Definition at line 37 of file Server_Client.h.

◆ server_checkpoint

int64_t joedb::Server_Client::server_checkpoint
protected

Definition at line 38 of file Server_Client.h.

◆ session_id

int64_t joedb::Server_Client::session_id
protected

Definition at line 36 of file Server_Client.h.


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