Joedb 9.5.0
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, std::ostream *log=nullptr)
 
void set_keep_alive_interval (std::chrono::seconds duration)
 
int64_t get_session_id () const
 
Thread_Safe_Channelget_channel ()
 
void ping ()
 
 ~Server_Client ()
 

Protected Member Functions

void download (Async_Writer &writer, Channel_Lock &lock, int64_t size) const
 

Protected Attributes

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

Friends

class Server_File
 

Detailed Description

Definition at line 16 of file Server_Client.h.

Constructor & Destructor Documentation

◆ Server_Client()

joedb::Server_Client::Server_Client ( Channel channel,
std::ostream *  log = nullptr 
)

Definition at line 137 of file Server_Client.cpp.

◆ ~Server_Client()

joedb::Server_Client::~Server_Client ( )

Definition at line 163 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 114 of file Server_Client.cpp.

◆ get_channel()

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

Definition at line 52 of file Server_Client.h.

◆ get_session_id()

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

Definition at line 51 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 46 of file Server_Client.h.

Friends And Related Symbol Documentation

◆ Server_File

friend class Server_File
friend

Definition at line 18 of file Server_Client.h.

Member Data Documentation

◆ buffer

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

Definition at line 35 of file Server_Client.h.

◆ channel

Thread_Safe_Channel joedb::Server_Client::channel
mutableprotected

Definition at line 31 of file Server_Client.h.

◆ connected

bool joedb::Server_Client::connected
protected

Definition at line 33 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 38 of file Server_Client.h.

◆ server_checkpoint

int64_t joedb::Server_Client::server_checkpoint
protected

Definition at line 39 of file Server_Client.h.

◆ session_id

int64_t joedb::Server_Client::session_id
protected

Definition at line 37 of file Server_Client.h.


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