-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.h
46 lines (41 loc) · 852 Bytes
/
client.h
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
#include "config.h"
#ifdef DAEMON
#ifndef CLIENT_H_
#define CLIENT_H_
#include <boost/interprocess/ipc/message_queue.hpp>
#include "common.h"
#include "vt100.h"
#include "query.h"
#include "plugins.h"
#include "view.h"
#include "term-do.h"
#include "frontend.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
using namespace boost::interprocess;
class Client : public Frontend {
public:
Client();
~Client();
string loopDo();
void run(string);
void reset();
private:
void init();
void cleanup();
int handleChar(char);
void sendToServer(string);
string getFromServer(string,string);
string getFromServer(string);
string getFromServer();
class View *view;
message_queue *server_send;
message_queue *server_receive;
};
#endif
#endif