-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatrixSearchClient.h
46 lines (34 loc) · 909 Bytes
/
MatrixSearchClient.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
//
// Created by t on 1/15/19.
//
#ifndef FLIGTSIMPROJ2_MATRIXSEARCHCLIENT_H
#define FLIGTSIMPROJ2_MATRIXSEARCHCLIENT_H
#include <pthread.h>
#include <vector>
#include "Client.h"
//#include "Matrix.h"
//struct for the thread
struct Data {
string ipAddress;
int port;
vector<string> *message;
};
void *threadFunc(void *data);
class MatrixSearchClient : public Client {
Data *data;
pthread_t threadID;
public:
virtual void open(string ipAddress, int port, vector<string> *message);
void stop();
};
/*
pthread_t threadID;
//vector<pthread_t> threads;
bool setStop = false;
int socketDescriptor;
struct ServerData1 *serverData;
void stopThreads(vector<pthread_t> *threads, vector<TalkingData*> *talkingStructs);
int listenAccept(int time, struct ServerData1 *serverData1);
virtual void stop();
*/
#endif //FLIGTSIMPROJ2_MATRIXSEARCHCLIENT_H