C# Class Meebey.SmartIrc4net.IrcConnection

Mostrar archivo Open project: NewEraCracker/LOIC Class Usage Examples

Public Methods

Method Description
Connect ( string addresslist, int port ) : void

Connects to the specified server and port, when the connection fails the next server in the list will be used.

Disconnect ( ) : void

Disconnects from the server

IrcConnection ( ) : System

Initializes the message queues, read and write thread

Listen ( ) : void

Listen ( bool blocking ) : void

ListenOnce ( ) : void

ListenOnce ( bool blocking ) : void

ReadLine ( bool blocking ) : string

Reconnect ( ) : void

Reconnects to the server

WriteLine ( string data ) : void

WriteLine ( string data, Priority priority ) : void

Private Methods

Method Description
_NextAddress ( ) : void
_OnConnectionError ( object sender, EventArgs e ) : void
_SimpleParser ( object sender, ReadLineEventArgs args ) : void
_WriteLine ( string data ) : bool

Method Details

Connect() public method

Connects to the specified server and port, when the connection fails the next server in the list will be used.
The connection failed If there is already an active connection
public Connect ( string addresslist, int port ) : void
addresslist string List of servers to connect to
port int Portnumber to connect to
return void

Disconnect() public method

Disconnects from the server
/// If there was no active connection ///
public Disconnect ( ) : void
return void

IrcConnection() public method

Initializes the message queues, read and write thread
public IrcConnection ( ) : System
return System

Listen() public method

public Listen ( ) : void
return void

Listen() public method

public Listen ( bool blocking ) : void
blocking bool
return void

ListenOnce() public method

public ListenOnce ( ) : void
return void

ListenOnce() public method

public ListenOnce ( bool blocking ) : void
blocking bool
return void

ReadLine() public method

public ReadLine ( bool blocking ) : string
blocking bool
return string

Reconnect() public method

Reconnects to the server
/// If there was no active connection /// /// The connection failed /// /// If there is already an active connection ///
public Reconnect ( ) : void
return void

WriteLine() public method

public WriteLine ( string data ) : void
data string
return void

WriteLine() public method

public WriteLine ( string data, Priority priority ) : void
data string
priority Priority
return void