> unprivilegied port doesn't help. Tested on 4 computers with windows xp sp3.
> c:\n2n>supernode -l 1234
> 31/Jan/2009 12:41:47 [ .\n2n.c: 224] ERROR: Bind error [No error]
>
> supernode svn <= 3505 - works well,
> supernode svn 3530, 3531 - doesn't compile on windows using visual studio
> supernode svn >= 3533 compiles, but doesn't bind
I noticed a strangeness in the supernode code I had never noticed before.
In supernode.c main() calls open_socket twice, once for UDP and once for TCP.
This is clearly wrong, it should be one or the other.
As a test, you can try removing the TCP listen (the second call to
open_socket). ... and the first test after this, please choose a random port
number you have not used before.
Index: supernode.c
===================================================================
--- supernode.c (revision 3670)
+++ supernode.c (working copy)
@@ -467,10 +467,6 @@
udp_sinfo.sock = open_socket(local_port, 1, 0);
if(udp_sinfo.sock < 0) return(-1);
- tcp_sinfo.is_udp_socket=0;
- tcp_sinfo.sock = open_socket(local_port, 0, 1);
- if(tcp_sinfo.sock < 0) return(-1);
-
traceEvent(TRACE_NORMAL, "Supernode ready: listening on port %d [TCP/UDP]",
local_port);
while(1) {
Stay connected to the people that matter most with a smarter inbox. Take
a look http://au.docs.yahoo.com/mail/smarterinbox
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev