C# Класс IrcDotNet.StandardIrcClient

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

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

Метод Описание
Connect ( EndPoint remoteEndPoint, bool useSsl, IrcRegistrationInfo registrationInfo ) : void

Connects asynchronously to the specified server.

Connect ( IPAddress address, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
Connect ( IPAddress address, int port, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
Connect ( Uri url, IrcRegistrationInfo registrationInfo ) : void

Connects to a server using the specified URL and user information.

Connect ( string hostName, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
Connect ( string hostName, int port, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
Disconnect ( ) : void
Quit ( int timeout, string comment ) : void
StandardIrcClient ( ) : System.Net.Security
ToString ( ) : string

Returns a string representation of this instance.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
HandleClientConnected ( IrcRegistrationInfo regInfo ) : void
HandleClientDisconnected ( ) : void
ResetState ( ) : void
WriteMessage ( string line, object token ) : void

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

Метод Описание
ConnectAsync ( EndPoint remoteEndPoint, object token = null ) : void
ConnectCompleted ( object sender, SocketAsyncEventArgs e ) : void
DisconnectAsync ( ) : void
DisconnectCompleted ( object sender, SocketAsyncEventArgs e ) : void
GetDataStream ( bool useSsl, string targetHost ) : Stream
HandleSocketError ( SocketError error ) : void
HandleSocketError ( SocketException exception ) : void
ReceiveAsync ( ) : void
ReceiveCompleted ( object sender, SocketAsyncEventArgs e ) : void
SendAsync ( byte buffer, int offset, int count, object token = null ) : void
SendAsync ( byte buffer, object token = null ) : void
SendCompleted ( object sender, SocketAsyncEventArgs e ) : void
SslUserCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
WritePendingMessages ( object state ) : void

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

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

Connects asynchronously to the specified server.
/// is . /// /// does not specify valid registration /// information. /// The current instance has already been disposed.
public Connect ( EndPoint remoteEndPoint, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
remoteEndPoint System.Net.EndPoint /// The network endpoint (IP address and port) of the server to which to connect. ///
useSsl bool /// to connect to the server via SSL; , /// otherwise ///
registrationInfo IrcRegistrationInfo /// The information used for registering the client. /// The type of the object may be either or /// . ///
Результат void

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

public Connect ( IPAddress address, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
address System.Net.IPAddress
useSsl bool
registrationInfo IrcRegistrationInfo
Результат void

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

public Connect ( IPAddress address, int port, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
address System.Net.IPAddress An IP addresses that designates the remote host.
port int The port number of the remote host.
useSsl bool
registrationInfo IrcRegistrationInfo
Результат void

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

Connects to a server using the specified URL and user information.
public Connect ( Uri url, IrcRegistrationInfo registrationInfo ) : void
url System.Uri
registrationInfo IrcRegistrationInfo
Результат void

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

public Connect ( string hostName, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
hostName string
useSsl bool
registrationInfo IrcRegistrationInfo
Результат void

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

public Connect ( string hostName, int port, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
hostName string The name of the remote host.
port int The port number of the remote host.
useSsl bool
registrationInfo IrcRegistrationInfo
Результат void

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

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

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

HandleClientConnected() защищенный Метод

protected HandleClientConnected ( IrcRegistrationInfo regInfo ) : void
regInfo IrcRegistrationInfo
Результат void

HandleClientDisconnected() защищенный Метод

protected HandleClientDisconnected ( ) : void
Результат void

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

public Quit ( int timeout, string comment ) : void
timeout int
comment string
Результат void

ResetState() защищенный Метод

protected ResetState ( ) : void
Результат void

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

public StandardIrcClient ( ) : System.Net.Security
Результат System.Net.Security

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

Returns a string representation of this instance.
public ToString ( ) : string
Результат string

WriteMessage() защищенный Метод

protected WriteMessage ( string line, object token ) : void
line string
token object
Результат void