-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (28 loc) · 707 Bytes
/
main.cpp
File metadata and controls
35 lines (28 loc) · 707 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
32
33
34
35
#include <iostream>
#include "SocketCom.h"
int main(){
char *buffer;
bool *newbuff;
buffer=new char[256];
newbuff=new bool;
*newbuff=false;
//std::cout<<"wtf"<<std::endl;
//std::cout<<"buff or "<<newbuff<<std::endl;
//std::cout<<"*butt or "<<&newbuff<<std::endl;
SocketCom server(false,"heppc076",24001,buffer,newbuff);
// while (true){
//std::cout<<"ben debug 1"<<std::endl;
server.ListenStart();
//std::cout<<"ben debug 2"<<std::endl;
while (true){
if(*newbuff){
//std::cout<<"ben debug 3"<<std::endl;
std::cout<<buffer<<std::endl;
*newbuff=false;
}
// usleep(10000000);
// server.ListenStop();
//
}
return 0;
}