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
파일 보기 프로젝트 열기: TangibleCryptography/BitSharper 1 사용 예제들

공개 메소드들

메소드 설명
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