C# Class Squishy.Irc.Protocol.IrcProtocolHandler

Inheritance: IProtocolHandler
Mostrar archivo Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Protected Properties

Property Type Description
encoding System.Text.Encoding

Public Methods

Method Description
ApplyTo ( IrcClient irc ) : void
CreatePacket ( string content ) : IrcPacket

Build a packet from a new line of content from the server. Do as much parsing as possible here before the packet-handler will then work with the gathered information.

ExtractPackets ( ByteBuffer partialResponse ) : Squishy.Irc.Protocol.IrcPacket[]
HandleBytes ( Connection con, ByteBuffer buf ) : void

Private Methods

Method Description
IrcProtocolHandler ( Encoding encoding ) : System
IrcProtocolHandler ( IrcClient irc, Encoding encoding ) : System
ParseModes ( IrcUser user, IrcChannel chan, string flags, string args ) : void

Method Details

ApplyTo() public method

public ApplyTo ( IrcClient irc ) : void
irc IrcClient
return void

CreatePacket() public method

Build a packet from a new line of content from the server. Do as much parsing as possible here before the packet-handler will then work with the gathered information.
public CreatePacket ( string content ) : IrcPacket
content string
return IrcPacket

ExtractPackets() public method

public ExtractPackets ( ByteBuffer partialResponse ) : Squishy.Irc.Protocol.IrcPacket[]
partialResponse ByteBuffer
return Squishy.Irc.Protocol.IrcPacket[]

HandleBytes() public method

public HandleBytes ( Connection con, ByteBuffer buf ) : void
con Squishy.Network.Connection
buf ByteBuffer
return void

Property Details

encoding protected_oe property

protected Encoding,System.Text encoding
return System.Text.Encoding