]> p2p-next.cs.pub.ro Git - swift-upb.git/commitdiff
- 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 5f07d2628d880c1e9702b800ef26a819756dfa84..5b2dd64752f2167b2a4368fdec44ff4cddb92a9f 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 90b409725a1e95d500912b39dae7efee539f93e7..29898888f254ea189458741482b811dbba92dc14 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;