From: David ‘Bombe’ Roden Date: Thu, 19 Mar 2009 20:19:25 +0000 (+0100) Subject: Actually send “ListPeers” command. X-Git-Tag: v0.1.1~90 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8910934019bdf1720614a36971dd18d2fc6bcb54;p=jFCPlib.git Actually send “ListPeers” command. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index ecbd62d..fe322e3 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -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 {