- Added trial binary to SConscript, fixed Win32 typing bug.
authorarno <arno@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 14:31:01 +0000 (14:31 +0000)
committerarno <arno@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 14:31:01 +0000 (14:31 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@541 e16421f0-f15b-0410-abcd-98678b794739

exec/SConscript
exec/trial.cpp

index 5f07d26..5b2dd64 100644 (file)
@@ -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'],
index 90b4097..2989888 100644 (file)
@@ -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;