@Deprecated public class IrcDiscovery extends Object implements PeerDiscovery
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 networksprotected 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 PeerDiscovery
PeerDiscoveryException
Copyright © 2014. All rights reserved.