nodechan

decentralized peer-to-peer anonymous messageboard client
git clone git://squid-tech.com/nodechan.git
Log | Files | Refs | README

commit 4d0d089bc1aa8aec5688ea22c2c480db477fd8cc
parent 498c7faac16c35d7dc0c00af2d549d6020c98ed1
Author: joshiemoore <jxm5210@g.rit.edu>
Date:   Fri,  9 Aug 2019 00:39:17 -0400

Add -nohello option parsing

Diffstat:
Msrc/NodeChan.java | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/NodeChan.java b/src/NodeChan.java @@ -77,6 +77,7 @@ public class NodeChan { for (int i = 0; i < args.length; i++) { if (args[i].equals("-nogui")) nogui = true; else if (args[i].equals("-local")) local = true; + else if (args[i].equals("-nohello")) nohello = true; } System.out.println("Welcome to NodeChan."); @@ -273,7 +274,7 @@ public class NodeChan { System.err.println("Could not add that address as a peer."); } else { peers.add(newPeer); - // TODO: send "hello" packet to new peer + sendHelloPacket(newPeer); System.out.println("\nPeer " + readIP + " added."); }