From cc37d561b2fb5f8622663a4cf39932b7863cd01f Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 12 Nov 2009 14:31:01 +0000 Subject: [PATCH] - Added trial binary to SConscript, fixed Win32 typing bug. git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@541 e16421f0-f15b-0410-abcd-98678b794739 --- exec/SConscript | 8 ++++++++ exec/trial.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/exec/SConscript b/exec/SConscript index 5f07d26..5b2dd64 100644 --- a/exec/SConscript +++ b/exec/SConscript @@ -21,6 +21,14 @@ else: print "tests: libpath is",libpath + +env.Program( + target='trial', + source=['trial.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath ) + env.Program( target='seeder', source=['seeder.cpp'], diff --git a/exec/trial.cpp b/exec/trial.cpp index 90b4097..2989888 100644 --- a/exec/trial.cpp +++ b/exec/trial.cpp @@ -21,7 +21,7 @@ int main (int argn, char** args) { p2tp::LibraryInit(); const char* filename = "team.jpg"; Address tracker("130.161.211.198:10000"), - bindaddr(INADDR_ANY,10000); + bindaddr((uint32_t)INADDR_ANY,10000); if (0>p2tp::Listen(bindaddr)) { print_error("cannot bind"); return 1; -- 2.20.1