C# Класс BitSharper.Discovery.IrcDiscovery

IrcDiscovery provides a way to find network peers by joining a pre-agreed rendevouz point on the LFnet IRC network.
Наследование: IPeerDiscovery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnIrcReceive ( string message ) : void
OnIrcSend ( string message ) : void

Приватные методы

Метод Описание
CheckLineStatus ( string statusCode, string response ) : bool
LogAndSend ( TextWriter writer, string command ) : void
ParseUserList ( IEnumerable userNames ) : IList

Описание методов

GetPeers() публичный Метод

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
Результат IEnumerable

IrcDiscovery() публичный Метод

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.
Результат System

OnIrcReceive() защищенный Метод

protected OnIrcReceive ( string message ) : void
message string
Результат void

OnIrcSend() защищенный Метод

protected OnIrcSend ( string message ) : void
message string
Результат void