Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ServerApp Class Reference

#include <ServerApp.h>

Inheritance diagram for ServerApp:
Collaboration diagram for ServerApp:

Public Member Functions

 ServerApp (IEventQueue *events)
 ~ServerApp () override=default
void parseArgs (int argc, const char *const *argv) override
void help () override
const char * daemonName () const override
const char * daemonInfo () const override
void loadConfig () override
bool loadConfig (const std::string &pathname) override
deskflow::ScreencreateScreen () override
int mainLoop () override
int runInner (int argc, char **argv, StartupFunc startup) override
int standardStartup (int argc, char **argv) override
int foregroundStartup (int argc, char **argv) override
void startNode () override
std::string configSection () const override
void reloadConfig ()
void forceReconnect ()
void resetServer ()
void handleClientConnected (const Event &e, ClientListener *listener)
void closeServer (Server *server)
void stopRetryTimer ()
void updateStatus () const
void updateStatus (const std::string_view &msg) const
void closeClientListener (ClientListener *listen)
void stopServer ()
void closePrimaryClient (PrimaryClient *primaryClient)
void closeServerScreen (deskflow::Screen *screen)
void cleanupServer ()
bool initServer ()
void retryHandler ()
deskflow::ScreenopenServerScreen ()
PrimaryClientopenPrimaryClient (const std::string &name, deskflow::Screen *screen)
void handleScreenError ()
void handleSuspend ()
void handleResume ()
ClientListeneropenClientListener (const NetworkAddress &address)
ServeropenServer (ServerConfig &config, PrimaryClient *primaryClient)
bool startServer ()
ServergetServerPtr ()
deskflow::ServerArgsargs () const
Public Member Functions inherited from App
 App (IEventQueue *events, deskflow::ArgsBase *args)
 App (App const &)=delete
 App (App &&)=delete
 ~App () override
Appoperator= (App const &)=delete
Appoperator= (App &&)=delete
virtual void version ()
void setByeFunc (void(*bye)(int)) override
void bye (int error) override
IEventQueuegetEvents () const override
ARCH_APP_UTILappUtil ()
deskflow::ArgsBaseargsBase () const override
int run (int argc, char **argv)
int daemonMainLoop (int, const char **)
void setupFileLogging ()
void loggingFilterWarning () const
void initApp (int argc, const char **argv) override
void initApp (int argc, char **argv)
void setEvents (EventQueue &events)
void setSocketMultiplexer (std::unique_ptr< SocketMultiplexer > &&sm)
SocketMultiplexergetSocketMultiplexer () const
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Static Public Member Functions

static void reloadSignalHandler (Arch::ThreadSignal, void *)
static ServerAppinstance ()
Static Public Member Functions inherited from App
static Appinstance ()

Additional Inherited Members

Public Attributes inherited from App
void(* m_bye )(int)
Protected Member Functions inherited from App
void runEventsLoop (void *)
Protected Attributes inherited from App
IEventQueuem_events = nullptr

Constructor & Destructor Documentation

◆ ServerApp()

ServerApp::ServerApp ( IEventQueue * events)
explicit

◆ ~ServerApp()

ServerApp::~ServerApp ( )
overridedefault

Member Function Documentation

◆ args()

deskflow::ServerArgs & ServerApp::args ( ) const
inline

◆ cleanupServer()

void ServerApp::cleanupServer ( )

◆ closeClientListener()

void ServerApp::closeClientListener ( ClientListener * listen)

◆ closePrimaryClient()

void ServerApp::closePrimaryClient ( PrimaryClient * primaryClient)

◆ closeServer()

void ServerApp::closeServer ( Server * server)

◆ closeServerScreen()

void ServerApp::closeServerScreen ( deskflow::Screen * screen)

◆ configSection()

std::string ServerApp::configSection ( ) const
inlineoverridevirtual

Implements App.

◆ createScreen()

deskflow::Screen * ServerApp::createScreen ( )
overridevirtual

Implements IApp.

◆ daemonInfo()

const char * ServerApp::daemonInfo ( ) const
overridevirtual

Implements App.

◆ daemonName()

const char * ServerApp::daemonName ( ) const
overridevirtual

Implements IApp.

◆ forceReconnect()

void ServerApp::forceReconnect ( )

◆ foregroundStartup()

int ServerApp::foregroundStartup ( int argc,
char ** argv )
overridevirtual

Implements IApp.

◆ getServerPtr()

Server * ServerApp::getServerPtr ( )
inline

◆ handleClientConnected()

void ServerApp::handleClientConnected ( const Event & e,
ClientListener * listener )

◆ handleResume()

void ServerApp::handleResume ( )

◆ handleScreenError()

void ServerApp::handleScreenError ( )

◆ handleSuspend()

void ServerApp::handleSuspend ( )

◆ help()

void ServerApp::help ( )
overridevirtual

Implements App.

◆ initServer()

bool ServerApp::initServer ( )

◆ instance()

ServerApp & ServerApp::instance ( )
inlinestatic

◆ loadConfig() [1/2]

void ServerApp::loadConfig ( )
overridevirtual

Implements App.

◆ loadConfig() [2/2]

bool ServerApp::loadConfig ( const std::string & pathname)
overridevirtual

Implements App.

◆ mainLoop()

int ServerApp::mainLoop ( )
overridevirtual

Implements IApp.

◆ openClientListener()

ClientListener * ServerApp::openClientListener ( const NetworkAddress & address)

◆ openPrimaryClient()

PrimaryClient * ServerApp::openPrimaryClient ( const std::string & name,
deskflow::Screen * screen )

◆ openServer()

Server * ServerApp::openServer ( ServerConfig & config,
PrimaryClient * primaryClient )

◆ openServerScreen()

deskflow::Screen * ServerApp::openServerScreen ( )

◆ parseArgs()

void ServerApp::parseArgs ( int argc,
const char *const * argv )
overridevirtual

Implements App.

◆ reloadConfig()

void ServerApp::reloadConfig ( )

◆ reloadSignalHandler()

void ServerApp::reloadSignalHandler ( Arch::ThreadSignal ,
void *  )
static

◆ resetServer()

void ServerApp::resetServer ( )

◆ retryHandler()

void ServerApp::retryHandler ( )

◆ runInner()

int ServerApp::runInner ( int argc,
char ** argv,
StartupFunc startup )
overridevirtual

Implements IApp.

◆ standardStartup()

int ServerApp::standardStartup ( int argc,
char ** argv )
overridevirtual

Implements IApp.

◆ startNode()

void ServerApp::startNode ( )
overridevirtual

Implements IApp.

◆ startServer()

bool ServerApp::startServer ( )

◆ stopRetryTimer()

void ServerApp::stopRetryTimer ( )

◆ stopServer()

void ServerApp::stopServer ( )

◆ updateStatus() [1/2]

void ServerApp::updateStatus ( ) const

◆ updateStatus() [2/2]

void ServerApp::updateStatus ( const std::string_view & msg) const

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