C# Class wmib.WmIrcProtocol

This is a custom protocol for handling irc requests that is capable of parsing input from multiple sessions (connections) so that we can use only 1 network instance for all wm-bot sessions that are connected to target server
Inheritance: libirc.Protocols.ProtocolIrc
Afficher le fichier Open project: benapetr/wikimedia-bot Class Usage Examples

Méthodes publiques

Свойство Type Description
BouncerHost string
BouncerPort int
ChannelsJoined bool
IsDisconnected bool
IsWorking bool

Méthodes publiques

Méthode Description
Authenticate ( bool wait = true ) : bool
DebugLog ( string Text, int Verbosity ) : void
Disconnect ( ) : System.Result
Open ( ) : Thread
TrafficLog ( string text, bool incoming ) : void
Transfer ( string text, libirc priority, libirc network ) : System.Result
WmIrcProtocol ( string ServerHost, string bouncerHost, int bouncerPort ) : System

Méthodes protégées

Méthode Description
SafeDc ( ) : void

Private Methods

Méthode Description
KillSelf ( string reason ) : void
NetworkInit ( ) : void
ThreadExec ( ) : void
_Connect ( ) : bool
connectBnc ( ) : bool

Method Details

Authenticate() public méthode

public Authenticate ( bool wait = true ) : bool
wait bool
Résultat bool

DebugLog() public méthode

public DebugLog ( string Text, int Verbosity ) : void
Text string
Verbosity int
Résultat void

Disconnect() public méthode

public Disconnect ( ) : System.Result
Résultat System.Result

Open() public méthode

public Open ( ) : Thread
Résultat Thread

SafeDc() protected méthode

protected SafeDc ( ) : void
Résultat void

TrafficLog() public méthode

public TrafficLog ( string text, bool incoming ) : void
text string
incoming bool
Résultat void

Transfer() public méthode

public Transfer ( string text, libirc priority, libirc network ) : System.Result
text string
priority libirc
network libirc
Résultat System.Result

WmIrcProtocol() public méthode

public WmIrcProtocol ( string ServerHost, string bouncerHost, int bouncerPort ) : System
ServerHost string
bouncerHost string
bouncerPort int
Résultat System

Property Details

BouncerHost public_oe property

public string BouncerHost
Résultat string

BouncerPort public_oe property

public int BouncerPort
Résultat int

ChannelsJoined public_oe property

public bool ChannelsJoined
Résultat bool

IsDisconnected public_oe property

public bool IsDisconnected
Résultat bool

IsWorking public_oe property

public bool IsWorking
Résultat bool