C# Class IrcDotNet.StandardIrcClient

Inheritance: IrcClient
ファイルを表示 Open project: IrcDotNet/IrcDotNet Class Usage Examples

Public Methods

Method 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.

Protected Methods

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

Private Methods

Method 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 method

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 /// . ///
return void

Connect() public method

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

Connect() public method

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
return void

Connect() public method

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

Connect() public method

public Connect ( string hostName, bool useSsl, IrcRegistrationInfo registrationInfo ) : void
hostName string
useSsl bool
registrationInfo IrcRegistrationInfo
return void

Connect() public method

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
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HandleClientConnected() protected method

protected HandleClientConnected ( IrcRegistrationInfo regInfo ) : void
regInfo IrcRegistrationInfo
return void

HandleClientDisconnected() protected method

protected HandleClientDisconnected ( ) : void
return void

Quit() public method

public Quit ( int timeout, string comment ) : void
timeout int
comment string
return void

ResetState() protected method

protected ResetState ( ) : void
return void

StandardIrcClient() public method

public StandardIrcClient ( ) : System.Net.Security
return System.Net.Security

ToString() public method

Returns a string representation of this instance.
public ToString ( ) : string
return string

WriteMessage() protected method

protected WriteMessage ( string line, object token ) : void
line string
token object
return void