Deskflow 1.22.0.197
Keyboard and mouse sharing utility
|
#include <ServerApp.h>
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::Screen * | createScreen () 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::Screen * | openServerScreen () |
PrimaryClient * | openPrimaryClient (const std::string &name, deskflow::Screen *screen) |
void | handleScreenError () |
void | handleSuspend () |
void | handleResume () |
ClientListener * | openClientListener (const NetworkAddress &address) |
Server * | openServer (ServerConfig &config, PrimaryClient *primaryClient) |
bool | startServer () |
Server * | getServerPtr () |
deskflow::ServerArgs & | args () const |
Public Member Functions inherited from App | |
App (IEventQueue *events, deskflow::ArgsBase *args) | |
App (App const &)=delete | |
App (App &&)=delete | |
~App () override | |
App & | operator= (App const &)=delete |
App & | operator= (App &&)=delete |
virtual void | version () |
void | setByeFunc (void(*bye)(int)) override |
void | bye (int error) override |
IEventQueue * | getEvents () const override |
ARCH_APP_UTIL & | appUtil () |
deskflow::ArgsBase & | argsBase () 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) |
SocketMultiplexer * | getSocketMultiplexer () 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 ServerApp & | instance () |
Static Public Member Functions inherited from App | |
static App & | instance () |
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 | |
IEventQueue * | m_events = nullptr |
|
explicit |
|
overridedefault |
|
inline |
void ServerApp::cleanupServer | ( | ) |
void ServerApp::closeClientListener | ( | ClientListener * | listen | ) |
void ServerApp::closePrimaryClient | ( | PrimaryClient * | primaryClient | ) |
void ServerApp::closeServer | ( | Server * | server | ) |
void ServerApp::closeServerScreen | ( | deskflow::Screen * | screen | ) |
|
inlineoverridevirtual |
Implements App.
|
overridevirtual |
Implements IApp.
|
overridevirtual |
Implements App.
|
overridevirtual |
Implements IApp.
void ServerApp::forceReconnect | ( | ) |
|
inline |
void ServerApp::handleClientConnected | ( | const Event & | e, |
ClientListener * | listener ) |
void ServerApp::handleResume | ( | ) |
void ServerApp::handleScreenError | ( | ) |
void ServerApp::handleSuspend | ( | ) |
|
overridevirtual |
Implements App.
bool ServerApp::initServer | ( | ) |
|
inlinestatic |
|
overridevirtual |
Implements App.
|
overridevirtual |
Implements App.
ClientListener * ServerApp::openClientListener | ( | const NetworkAddress & | address | ) |
PrimaryClient * ServerApp::openPrimaryClient | ( | const std::string & | name, |
deskflow::Screen * | screen ) |
Server * ServerApp::openServer | ( | ServerConfig & | config, |
PrimaryClient * | primaryClient ) |
deskflow::Screen * ServerApp::openServerScreen | ( | ) |
void ServerApp::reloadConfig | ( | ) |
|
static |
void ServerApp::resetServer | ( | ) |
void ServerApp::retryHandler | ( | ) |
|
overridevirtual |
Implements IApp.
|
overridevirtual |
Implements IApp.
bool ServerApp::startServer | ( | ) |
void ServerApp::stopRetryTimer | ( | ) |
void ServerApp::stopServer | ( | ) |
void ServerApp::updateStatus | ( | ) | const |
void ServerApp::updateStatus | ( | const std::string_view & | msg | ) | const |