Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XArch.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
11#include "common/Common.h"
12
13#include <stdexcept>
14#include <string>
15
17
22class XThread : public std::exception
23{
24};
25
27
31class XThreadCancel : public XThread
32{
33};
34
41#define RETHROW_XTHREAD \
42 try { \
43 throw; \
44 } catch (XThread &) { \
45 throw; \
46 } catch (...) { \
47 }
48
50
54class XArchNetwork : public std::runtime_error
55{
56 using std::runtime_error::runtime_error;
57};
58
61{
62 using XArchNetwork::XArchNetwork;
63};
64
67{
68 using XArchNetwork::XArchNetwork;
69};
70
73{
74 using XArchNetwork::XArchNetwork;
75};
76
79{
80 using XArchNetwork::XArchNetwork;
81};
82
85{
86 using XArchNetwork::XArchNetwork;
87};
88
91{
92 using XArchNetwork::XArchNetwork;
93};
94
97{
98 using XArchNetwork::XArchNetwork;
99};
100
103{
104 using XArchNetwork::XArchNetwork;
105};
106
109{
110 using XArchNetwork::XArchNetwork;
111};
112
115{
116 using XArchNetwork::XArchNetwork;
117};
118
121{
122 using XArchNetwork::XArchNetwork;
123};
124
127{
128 using XArchNetwork::XArchNetwork;
129};
130
133{
134 using XArchNetwork::XArchNetwork;
135};
136
139{
140 using XArchNetwork::XArchNetwork;
141};
142
145{
146 using XArchNetworkName::XArchNetworkName;
147};
148
151{
152 using XArchNetworkName::XArchNetworkName;
153};
154
157{
158 using XArchNetworkName::XArchNetworkName;
159};
160
163{
164 using XArchNetworkName::XArchNetworkName;
165};
166
169{
170 using XArchNetworkName::XArchNetworkName;
171};
172
174
178class XArchDaemon : public std::runtime_error
179{
180 using std::runtime_error::runtime_error;
181};
182
185{
186 using XArchDaemon::XArchDaemon;
187};
188
191{
192 using XArchDaemon::XArchDaemon;
193};
194
197{
198 using XArchDaemon::XArchDaemon;
199};
200
203{
204 using XArchDaemonFailed::XArchDaemonFailed;
205};
Could not daemonize.
Definition XArch.h:185
Could not install daemon.
Definition XArch.h:191
Could not uninstall daemon.
Definition XArch.h:197
Attempted to uninstall a daemon that was not installed.
Definition XArch.h:203
Generic daemon exception.
Definition XArch.h:179
Network insufficient permission.
Definition XArch.h:67
Network address in use.
Definition XArch.h:97
Remote end of socket refused connection.
Definition XArch.h:127
Remote end of socket has disconnected.
Definition XArch.h:121
Network I/O error.
Definition XArch.h:85
Operation was interrupted.
Definition XArch.h:61
Non-recoverable name server error.
Definition XArch.h:157
The named host is known but has no address.
Definition XArch.h:151
Temporary name server error.
Definition XArch.h:163
The named host is unknown.
Definition XArch.h:145
The named host is known but no supported address.
Definition XArch.h:169
Generic network name lookup erros.
Definition XArch.h:139
Network address is unavailable or not local.
Definition XArch.h:91
No route to address.
Definition XArch.h:103
Socket not connected.
Definition XArch.h:109
Network insufficient resources.
Definition XArch.h:73
Remote read end of socket has closed.
Definition XArch.h:115
No support for requested network resource/service.
Definition XArch.h:79
Remote end of socket is not responding.
Definition XArch.h:133
Generic network exception.
Definition XArch.h:55
Thread exception to cancel.
Definition XArch.h:32
Generic thread exception.
Definition XArch.h:23