-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient_test.cpp_o
More file actions
61 lines (55 loc) · 1.35 KB
/
Copy pathclient_test.cpp_o
File metadata and controls
61 lines (55 loc) · 1.35 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <httplib.h>
#include <iostream>
// #include <thread>
// #include "server.h"
#include "client.h"
// #include "trust_center.h"
int main124412424()
{
// startTrustCenter(LAMBDA, BLOOM_SIZE);
int switcher = 1;
std::string updateFile;
size_t startInd=0;
size_t endInd=0;
while (switcher)
{
cout << "1. Setup Client Data" << endl;
cout << "2. Connect Server" << endl;
cout << "3. Search" << endl;
cin >> switcher;
switch (switcher)
{
case 1:
//setupClientData();
break;
case 2:
std::cout << "请输入更新文件:" << std::endl;
std::cin >> updateFile;
//updateClient(updateFile);
break;
case 3:
cout << "Enter how many words" << endl;
int q = 0;
cin >> q;
cout << "Enter search type(disjunctive,conjunctive)" << endl;
string Q = "";
cin >> Q;
cout << "Enter the word you want to search" << endl;
std::vector<std::string> Words;
for (int i = 0; i < q; i++)
{
std::string word;
std::cin >> word; // ��ȡһ������
Words.push_back(word); // ���õ������ӵ� Words ������
}
std::cout << "输入总索引范围:" << endl;
std::cout << "start:" << endl;
std::cin >> startInd;
std::cout << "end;" << endl;
std::cin >> endInd;
//searchClient(searchToken(Words, Q, q), Q, q,startInd,endInd);
break;
}
}
return 0;
}