2019-01-12 18:25:36 +00:00
|
|
|
//
|
|
|
|
// net.cpp
|
|
|
|
// Net
|
|
|
|
//
|
|
|
|
// Created by 胡一兵 on 2019/1/13.
|
|
|
|
// Copyright © 2019年 Bakantu. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "net.hpp"
|
|
|
|
|
2019-01-13 04:31:28 +00:00
|
|
|
void process(void *arg){
|
|
|
|
|
2019-01-12 18:25:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(void){
|
|
|
|
char ip[] = "127.0.0.1";
|
2019-01-13 04:31:28 +00:00
|
|
|
Socket server("127.0.0.1",9048,true,false);
|
2019-01-12 18:25:36 +00:00
|
|
|
printf("Start to listen\n");
|
2019-01-13 04:31:28 +00:00
|
|
|
Addr t_addr;
|
|
|
|
string str = server.PacketRecv(t_addr);
|
|
|
|
if(str == "request token"){
|
|
|
|
|
|
|
|
}
|
2019-01-12 18:25:36 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|