blob: 0626d5ccc1d940f916749b6f608bd68ddc39ce37 (
plain)
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
|
//
// Created by Gyuhwan Park on 2023/01/28.
//
#ifndef ULALACA_SESSIONBROKERCLIENT_HPP
#define ULALACA_SESSIONBROKERCLIENT_HPP
#include <string>
#include "IPCConnection.hpp"
struct SessionBrokerResponse {
bool isSuccessful;
std::string sessionPath;
int reason;
};
class SessionBrokerClient {
public:
SessionBrokerClient(const std::string &socketPath);
~SessionBrokerClient();
static std::string getMessage(int reason);
/**
* authenticate and requests session
* @return SessionBrokerResponse
*/
SessionBrokerResponse requestSession
(const std::string &username, const std::string &password);
private:
std::string _socketPath;
};
#endif //ULALACA_SESSIONBROKERCLIENT_HPP
|