GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TGRSIServer.h
Go to the documentation of this file.
1#ifndef TGRSISERVER_H
2#define TGRSISERVER_H
3
4/** \addtogroup Sorting
5 * @{
6 */
7
8/*
9 * Author: P.C. Bender, <pcbend@gmail.com>
10 *
11 * Please indicate changes with your initials.
12 *
13 *
14 */
15
16////////////////////////////////////////////////////////////////////////////////
17///
18/// \class TGRSIServer
19///
20/// A class to allow 'things' to communicate
21/// with GRSISort in a somewhat nice convenient and
22/// friendly way.
23///
24////////////////////////////////////////////////////////////////////////////////
25
26#include "TServerSocket.h"
27#include "TMonitor.h"
28#include "TSocket.h"
29#include "TMessage.h"
30
31class TGRSIServer : public TServerSocket {
32public:
33 static TGRSIServer* instance(int port = 9099);
34 TGRSIServer(const TGRSIServer&) = default;
35 TGRSIServer(TGRSIServer&&) noexcept = default;
36 TGRSIServer& operator=(const TGRSIServer&) = default;
37 TGRSIServer& operator=(TGRSIServer&&) noexcept = default;
39
41 {
42 if(fRunning) { fRunning = false; }
43 }
44
45private:
47 explicit TGRSIServer(int port);
49
50 TMonitor* fMonitor;
51
54
55 /// \cond CLASSIMP
56 ClassDefOverride(TGRSIServer, 0) // NOLINT(readability-else-after-return)
57 /// \endcond
58};
59/*! @} */
60#endif
TMonitor * fMonitor
Definition TGRSIServer.h:50
TGRSIServer(TGRSIServer &&) noexcept=default
void StopServer()
Definition TGRSIServer.h:40
static TGRSIServer * instance(int port=9099)
static TGRSIServer * fGRSIServer
Definition TGRSIServer.h:46
TGRSIServer(const TGRSIServer &)=default
void AcceptConnectionThread()
void MonitorConnectionsThread()
TGRSIServer(int port)