C# 클래스 Yaircc.Net.IRC.Connection

Represents a connection to an IRC server.
상속: IDisposable
파일 보기 프로젝트 열기: rastating/yaircc 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the socket used to interact with the server.

Connect ( ) : void

Begin establishing the connection asynchronously.

Connection ( ) : System

Initialises a new instance of the Yaircc.Net.IRC.Connection class.

Connection ( string server ) : System

Initialises a new instance of the Yaircc.Net.IRC.Connection class.

Connection ( string server, int port ) : System

Initialises a new instance of the Yaircc.Net.IRC.Connection class.

Connection ( string server, int port, string password ) : System

Initialises a new instance of the Yaircc.Net.IRC.Connection class.

Dispose ( ) : void

Disposes the object.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

Parse ( string command ) : ParseResult

Parses command and returns a ParseResult object to indicate the result of the operation

RegisterClient ( ) : void

Sends the registration commands needed when initialising an IRC connection.

RegisterClient ( string password, string username, string nickname, string realName ) : void

Sends the registration commands needed when initialising an IRC connection.

Send ( string data ) : void

Send a string of data to the server

ToString ( ) : string

Returns a string that represents the current object.

비공개 메소드들

메소드 설명
ConnectCallback ( IAsyncResult result ) : void

Handles the connection request callback of the under lying socket.

ReceiveCallback ( IAsyncResult result ) : void

Handles the incoming data callback of the under lying socket.

ReplyToPing ( string rawData ) : void

Send a reply to a ping command.

Send ( byte data ) : void

Send a string of data to the server

SendCallback ( IAsyncResult result ) : void

Handles the outgoing data callback of the under lying socket.

Timer_Elapsed ( object sender, System e ) : void

Handles the Elapsed event of System.Timers.Timer.

메소드 상세

Close() 공개 메소드

Closes the socket used to interact with the server.
public Close ( ) : void
리턴 void

Connect() 공개 메소드

Begin establishing the connection asynchronously.
public Connect ( ) : void
리턴 void

Connection() 공개 메소드

Initialises a new instance of the Yaircc.Net.IRC.Connection class.
public Connection ( ) : System
리턴 System

Connection() 공개 메소드

Initialises a new instance of the Yaircc.Net.IRC.Connection class.
public Connection ( string server ) : System
server string The server that will be connected to.
리턴 System

Connection() 공개 메소드

Initialises a new instance of the Yaircc.Net.IRC.Connection class.
public Connection ( string server, int port ) : System
server string The server that will be connected to.
port int The port number on which to connect to.
리턴 System

Connection() 공개 메소드

Initialises a new instance of the Yaircc.Net.IRC.Connection class.
public Connection ( string server, int port, string password ) : System
server string The server that will be connected to.
port int The port number on which to connect to.
password string The password of the server.
리턴 System

Dispose() 공개 메소드

Disposes the object.
public Dispose ( ) : void
리턴 void

Equals() 공개 메소드

Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
리턴 bool

GetHashCode() 공개 메소드

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
리턴 int

Parse() 공개 메소드

Parses command and returns a ParseResult object to indicate the result of the operation
public Parse ( string command ) : ParseResult
command string The command issued by the user to parse
리턴 ParseResult

RegisterClient() 공개 메소드

Sends the registration commands needed when initialising an IRC connection.
public RegisterClient ( ) : void
리턴 void

RegisterClient() 공개 메소드

Sends the registration commands needed when initialising an IRC connection.
public RegisterClient ( string password, string username, string nickname, string realName ) : void
password string The password of the server.
username string The user name to connect with.
nickname string The nick name to connect with.
realName string The real name to connect with.
리턴 void

Send() 공개 메소드

Send a string of data to the server
public Send ( string data ) : void
data string The data to send
리턴 void

ToString() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string