C# Класс Meebey.SmartIrc4net.IrcConnection

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
_NextAddress ( ) : void
_OnConnectionError ( object sender, EventArgs e ) : void
_SimpleParser ( object sender, ReadLineEventArgs args ) : void
_WriteLine ( string data ) : bool

Описание методов

Connect() публичный Метод

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
Результат void

Disconnect() публичный Метод

Disconnects from the server
/// If there was no active connection ///
public Disconnect ( ) : void
Результат void

IrcConnection() публичный Метод

Initializes the message queues, read and write thread
public IrcConnection ( ) : System
Результат System

Listen() публичный Метод

public Listen ( ) : void
Результат void

Listen() публичный Метод

public Listen ( bool blocking ) : void
blocking bool
Результат void

ListenOnce() публичный Метод

public ListenOnce ( ) : void
Результат void

ListenOnce() публичный Метод

public ListenOnce ( bool blocking ) : void
blocking bool
Результат void

ReadLine() публичный Метод

public ReadLine ( bool blocking ) : string
blocking bool
Результат string

Reconnect() публичный Метод

Reconnects to the server
/// If there was no active connection /// /// The connection failed /// /// If there is already an active connection ///
public Reconnect ( ) : void
Результат void

WriteLine() публичный Метод

public WriteLine ( string data ) : void
data string
Результат void

WriteLine() публичный Метод

public WriteLine ( string data, Priority priority ) : void
data string
priority Priority
Результат void