Free Electron
BeaconServerI.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __BeaconServerI_h__
8 #define __BeaconServerI_h__
9 
10 namespace beacon
11 {
12 
13 class FE_DL_EXPORT BeaconServerI:
14  virtual public fe::Component,
15  public fe::CastableAs<BeaconServerI>
16 {
17 public:
18  /// @brief Startup server process port with global dictionary port
19  virtual bool start(uint16_t beaconPort, uint16_t gdPort) = 0;
20 
21  /// @brief Stop server process
22  virtual void stop() = 0;
23 
24  /// @brief Returns true if the server process is still running
25  virtual bool running() = 0;
26 };
27 
28 }
29 
30 #endif // __BeaconServerI_h__
Base for all interfacable components.
Definition: Component.h:20
Definition: BeaconClient.cc:16
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192