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
显示文件 Open project: benapetr/wikimedia-bot Class Usage Examples

Public Properties

Property Type Description
BouncerHost string
BouncerPort int
ChannelsJoined bool
IsDisconnected bool
IsWorking bool

Public Methods

Method 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

Protected Methods

Method Description
SafeDc ( ) : void

Private Methods

Method Description
KillSelf ( string reason ) : void
NetworkInit ( ) : void
ThreadExec ( ) : void
_Connect ( ) : bool
connectBnc ( ) : bool

Method Details

Authenticate() public method

public Authenticate ( bool wait = true ) : bool
wait bool
return bool

DebugLog() public method

public DebugLog ( string Text, int Verbosity ) : void
Text string
Verbosity int
return void

Disconnect() public method

public Disconnect ( ) : System.Result
return System.Result

Open() public method

public Open ( ) : Thread
return Thread

SafeDc() protected method

protected SafeDc ( ) : void
return void

TrafficLog() public method

public TrafficLog ( string text, bool incoming ) : void
text string
incoming bool
return void

Transfer() public method

public Transfer ( string text, libirc priority, libirc network ) : System.Result
text string
priority libirc
network libirc
return System.Result

WmIrcProtocol() public method

public WmIrcProtocol ( string ServerHost, string bouncerHost, int bouncerPort ) : System
ServerHost string
bouncerHost string
bouncerPort int
return System

Property Details

BouncerHost public_oe property

public string BouncerHost
return string

BouncerPort public_oe property

public int BouncerPort
return int

ChannelsJoined public_oe property

public bool ChannelsJoined
return bool

IsDisconnected public_oe property

public bool IsDisconnected
return bool

IsWorking public_oe property

public bool IsWorking
return bool