C# Class apophis.SharpIRC.IrcConnection.IrcConnection

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: FreeApophis/sharpIRC Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
NextAddress ( ) : void
SimpleParser ( object sender, ReadLineEventArgs args ) : void
_OnConnectionError ( object sender, EventArgs e ) : void
_WriteLine ( string data ) : bool

Method Details

Connect() public méthode

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
Résultat void

Disconnect() public méthode

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

IrcConnection() public méthode

Initializes the message queues, read and write thread
public IrcConnection ( ) : System
Résultat System

Listen() public méthode

public Listen ( ) : void
Résultat void

Listen() public méthode

public Listen ( bool blocking ) : void
blocking bool
Résultat void

ListenOnce() public méthode

public ListenOnce ( ) : void
Résultat void

ListenOnce() public méthode

public ListenOnce ( bool blocking ) : void
blocking bool
Résultat void

ReadLine() public méthode

public ReadLine ( bool blocking ) : string
blocking bool
Résultat string

Reconnect() public méthode

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

WriteLine() public méthode

public WriteLine ( string data ) : void
data string
Résultat void

WriteLine() public méthode

public WriteLine ( string data, Priority priority ) : void
data string
priority Priority
Résultat void