|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.bitcoin.core.IrcDiscovery
public class IrcDiscovery
IrcDiscovery provides a way to find network peers by joining a pre-agreed rendevouz point on the LFnet IRC network.
Constructor Summary | |
---|---|
IrcDiscovery(String channel)
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting. |
|
IrcDiscovery(String channel,
String server,
int port)
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting. |
Method Summary | |
---|---|
InetSocketAddress[] |
getPeers()
Returns a list of peers that were found in the IRC channel. |
protected void |
onIRCReceive(String message)
|
protected void |
onIRCSend(String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IrcDiscovery(String channel)
channel
- The IRC channel to join, either "#bitcoin" or "#bitcoinTEST" for the production and test networks
respectively.public IrcDiscovery(String channel, String server, int port)
server
- Name or textual IP address of the IRC server to join.channel
- The IRC channel to join, either "#bitcoin" or "#bitcoinTEST" for the production and test networksMethod Detail |
---|
protected void onIRCSend(String message)
protected void onIRCReceive(String message)
public InetSocketAddress[] getPeers() throws PeerDiscoveryException
getPeers
in interface PeerDiscovery
PeerDiscoveryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |