C# Class fCraft.IRC.IrcThread

Class represents an IRC connection/thread. There is an undocumented option (IRCThreads) to "load balance" the outgoing messages between multiple bots. If that's the case, several IrcThread objects are created. The bots grab messages from IRC.outputQueue whenever they are not on cooldown (a bit of an intentional race condition).
Inheritance: IDisposable
Show file Open project: fragmer/fCraft

Private Properties

Property Type Description
AuthWithNickServ void
ClearLocalQueue void
Connect void
HandleMessage void
IoThread void
LogDisconnectWarning void
RetryForDesiredNick void
Send void

Public Methods

Method Description
DisconnectThread ( [ quitMsg ) : void
Dispose ( ) : void
IrcThread ( [ botNick ) : System
Start ( bool parseInput ) : bool

Private Methods

Method Description
AuthWithNickServ ( ) : void
ClearLocalQueue ( ) : void
Connect ( ) : void
HandleMessage ( [ message ) : void
IoThread ( ) : void
LogDisconnectWarning ( [ ex ) : void
RetryForDesiredNick ( ) : void
Send ( [ msg ) : void

Method Details

DisconnectThread() public method

public DisconnectThread ( [ quitMsg ) : void
quitMsg [
return void

Dispose() public method

public Dispose ( ) : void
return void

IrcThread() public method

public IrcThread ( [ botNick ) : System
botNick [
return System

Start() public method

public Start ( bool parseInput ) : bool
parseInput bool
return bool