Move sources to 'src' directory

This commit is contained in:
Arnout Engelen
2016-03-27 23:14:33 +02:00
parent fa8e7cb49e
commit e7a74b00fb
29 changed files with 14 additions and 14 deletions

24
src/conninode_test.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "conninode.cpp"
local_addr *local_addrs = NULL;
bool bughuntmode = false;
int main() {
if (!addprocinfo("testfiles/proc_net_tcp")) {
std::cerr << "Failed to load testfiles/proc_net_tcp" << std::endl;
return 1;
}
if (!addprocinfo("testfiles/proc_net_tcp_big")) {
std::cerr << "Failed to load testfiles/proc_net_tcp_big" << std::endl;
return 2;
}
#if not defined(__APPLE__)
if (!addprocinfo("/proc/net/tcp")) {
std::cerr << "Failed to load /proc/net/tcp" << std::endl;
return 3;
}
#endif
return 0;
}