C# Class BitSharper.Discovery.IrcDiscovery

IrcDiscovery provides a way to find network peers by joining a pre-agreed rendevouz point on the LFnet IRC network.
Inheritance: IPeerDiscovery
Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Méthode Description
GetPeers ( ) : IEnumerable

Returns a list of peers that were found in the IRC channel. Note that just because a peer appears in the list does not mean it is accepting connections.

IrcDiscovery ( string channel, string server = "irc.lfnet.org", int port = 6667 ) : System

Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting.

Méthodes protégées

Méthode Description
OnIrcReceive ( string message ) : void
OnIrcSend ( string message ) : void

Private Methods

Méthode Description
CheckLineStatus ( string statusCode, string response ) : bool
LogAndSend ( TextWriter writer, string command ) : void
ParseUserList ( IEnumerable userNames ) : IList

Method Details

GetPeers() public méthode

Returns a list of peers that were found in the IRC channel. Note that just because a peer appears in the list does not mean it is accepting connections.
public GetPeers ( ) : IEnumerable
Résultat IEnumerable

IrcDiscovery() public méthode

Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting.
public IrcDiscovery ( string channel, string server = "irc.lfnet.org", int port = 6667 ) : System
channel string The IRC channel to join, either "#bitcoin" or "#bitcoinTEST" for the production and test networks respectively.
server string Name or textual IP address of the IRC server to join.
port int The port of the IRC server to join.
Résultat System

OnIrcReceive() protected méthode

protected OnIrcReceive ( string message ) : void
message string
Résultat void

OnIrcSend() protected méthode

protected OnIrcSend ( string message ) : void
message string
Résultat void