|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.net.discovery.IrcDiscovery
@Deprecated public class IrcDiscovery
IrcDiscovery provides a way to find network peers by joining a pre-agreed rendevouz point on the LFnet IRC network. This class is deprecated because LFnet has ceased to operate and DNS seeds now exist for both prod and test networks. It may conceivably still be useful for running small ad-hoc networks by yourself.
| Constructor Summary | |
|---|---|
IrcDiscovery(String channel)
Deprecated. 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)
Deprecated. Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting. |
|
| Method Summary | |
|---|---|
InetSocketAddress[] |
getPeers(long timeoutValue,
TimeUnit timeoutUnit)
Deprecated. Returns a list of peers that were found in the IRC channel. |
protected void |
onIRCReceive(String message)
Deprecated. |
protected void |
onIRCSend(String message)
Deprecated. |
void |
shutdown()
Deprecated. Stops any discovery in progress when we want to shut down quickly. |
| 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 "#bitcoinTEST3" 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 "#bitcoinTEST3" for the production and test networks| Method Detail |
|---|
protected void onIRCSend(String message)
protected void onIRCReceive(String message)
public void shutdown()
PeerDiscovery
shutdown in interface PeerDiscovery
public InetSocketAddress[] getPeers(long timeoutValue,
TimeUnit timeoutUnit)
throws PeerDiscoveryException
getPeers in interface PeerDiscoveryPeerDiscoveryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||