C# Class IrcDotNet.StandardIrcClient

Inheritance: IrcClient
Afficher le fichier Open project: IrcDotNet/IrcDotNet Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
HandleClientConnected ( IrcRegistrationInfo regInfo ) : void
HandleClientDisconnected ( ) : void
ResetState ( ) : void
WriteMessage ( string line, object token ) : void

Private Methods

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

Method Details

Connect() public méthode

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

Connect() public méthode

public Connect ( IPAddress address, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
address System.Net.IPAddress
useSsl bool
registrationInfo IrcRegistrationInfo
Résultat void

Connect() public méthode

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

Connect() public méthode

Connects to a server using the specified URL and user information.
public Connect ( Uri url, IrcRegistrationInfo registrationInfo ) : void
url System.Uri
registrationInfo IrcRegistrationInfo
Résultat void

Connect() public méthode

public Connect ( string hostName, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
hostName string
useSsl bool
registrationInfo IrcRegistrationInfo
Résultat void

Connect() public méthode

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

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

HandleClientConnected() protected méthode

protected HandleClientConnected ( IrcRegistrationInfo regInfo ) : void
regInfo IrcRegistrationInfo
Résultat void

HandleClientDisconnected() protected méthode

protected HandleClientDisconnected ( ) : void
Résultat void

Quit() public méthode

public Quit ( int timeout, string comment ) : void
timeout int
comment string
Résultat void

ResetState() protected méthode

protected ResetState ( ) : void
Résultat void

StandardIrcClient() public méthode

public StandardIrcClient ( ) : System.Net.Security
Résultat System.Net.Security

ToString() public méthode

Returns a string representation of this instance.
public ToString ( ) : string
Résultat string

WriteMessage() protected méthode

protected WriteMessage ( string line, object token ) : void
line string
token object
Résultat void