-
Notifications
You must be signed in to change notification settings - Fork 0
/
clusterchat.hpp
48 lines (37 loc) · 1.33 KB
/
clusterchat.hpp
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
42
43
44
45
46
47
48
//***************************************************************************
// File clusterchat.hpp
// Date 23.07.17 - #1
// Copyright (c) 2017-2017 s710 (s710 (at) posteo (dot) de). All rights reserved.
// --------------------------------------------------------------------------
// Ark ClusterChat / ClusterChat class
//***************************************************************************
#ifndef __CLUSTERCHAT_HPP__
#define __CLUSTERCHAT_HPP__
#include <list> // std::list
#include <string> // std::string
#include "rconthread.hpp"
//***************************************************************************
// struct ServerConfig
//***************************************************************************
struct ServerConfig
{
std::string host;
std::string password;
std::string title;
int port;
};
//***************************************************************************
// class ClusterChat
//***************************************************************************
class ClusterChat
{
public:
ClusterChat();
~ClusterChat();
int init(std::list<ServerConfig*>* configs);
int shutdown();
protected:
std::list<RConThread*> threads;
};
//***************************************************************************
#endif //__CLUSTERCHAT_HPP__