Actually send “ListPeers” command.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 20:19:25 +0000 (21:19 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 22:09:10 +0000 (23:09 +0100)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index ecbd62d..fe322e3 100644 (file)
@@ -32,6 +32,7 @@ import net.pterodactylus.fcp.EndListPeers;
 import net.pterodactylus.fcp.FcpAdapter;
 import net.pterodactylus.fcp.FcpConnection;
 import net.pterodactylus.fcp.FcpListener;
+import net.pterodactylus.fcp.ListPeers;
 import net.pterodactylus.fcp.NodeHello;
 import net.pterodactylus.fcp.Peer;
 import net.pterodactylus.fcp.ProtocolError;
@@ -210,6 +211,7 @@ public class FcpClient {
                        }
                };
                fcpConnection.addFcpListener(fcpAdapter);
+               fcpConnection.sendMessage(new ListPeers("list-peers"));
                try {
                        while (true) {
                                try {