-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppState.h
More file actions
41 lines (25 loc) · 730 Bytes
/
AppState.h
File metadata and controls
41 lines (25 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Created by Sierra Kilo on 31-Aug-19.
//
#ifndef EZREMOTE_PROJECT_APPSTATE_H
#define EZREMOTE_PROJECT_APPSTATE_H
#include <string>
#include <atomic>
class AppState {
private:
// states the port used by the server
int port;
// states whether the server is currently connected to a client.
std::atomic<bool> in_connection;
// holds the ip of the client that the application is currently bonded to.
std::string ip_bond;
public:
AppState(int port);
void setPort(int port);
int getPort();
void setInConnectionValue(bool value);
bool isInConnection();
void setIpBondAddress(std::string ip);
std::string getIpBondAddress();
};
#endif //EZREMOTE_PROJECT_APPSTATE_H