-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (29 loc) · 730 Bytes
/
main.cpp
File metadata and controls
31 lines (29 loc) · 730 Bytes
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
/*
main.cpp for muti connects from client
*/
#include<stdio.h>
#include<string>
#include"../include/List.h"
#include"../include/CommandListener.h"
#include"../include/FrameworkClient.h"
#include"../include/FrameworkCommand.h"
#include"../include/FrameworkListener.h"
#include"../include/SocketClient.h"
#include"../include/SocketClientCommand.h"
#include"../include/SocketListener.h"
#include"../include/VoldCommand.h"
using namespace std;
typedef android::sysutils::List<string *> lis;
int main(int argc,char ** argv)
{
CommandListener *cl;
cl = new CommandListener();
if (cl->startListener()) {
perror("unable to start listen");
exit(1);
}
while(1) {
sleep(1000);
}
return 0;
}