C# 클래스 CwIRC.Interface

Class to manage connections to IRC servers, and the sending and receiving of data to them.
파일 보기 프로젝트 열기: MatthewCox/MoronBot 1 사용 예제들

공개 메소드들

메소드 설명
Assign ( Interface face ) : void
Connect ( string p_server, int p_port ) : bool

Connects to the specified IRC server, on the specified port.

Disconnect ( ) : void

Disconnects from the IRC server that the current instance of this class is connected to.

GetData ( ) : string

Gets a message from the downstream IRC message buffer.

JOIN ( string p_channel ) : void

Sends the JOIN message to the IRC server, with the specified channel to join.

NICK ( string p_name ) : void

Sends the NICK message to the IRC server, with the specified desired nickname.

NOTICE ( string p_message, string p_target ) : void

Sends the NOTICE message to the IRC server, with the specified message and target channel.

PART ( string p_channel, string p_partMessage ) : void

Sends the PART message to the IRC server, to leave the specified channel with the specified leaving message.

PRIVMSG ( string p_message, string p_target ) : void

Sends the PRIVMSG message to the IRC server, with the specified message and target channel.

QUIT ( string p_quitMessage ) : void

Sends the QUIT message to the IRC server, with the specified quit message.

SendData ( string p_string ) : void

Puts a message on the upstream IRC message buffer.

USER ( string p_name, string p_hostname, string p_servername, string p_realname ) : void

Sends the USER message to the IRC server, with the specified name, host name, server name, and real name.

worker_DoWork ( object sender, DoWorkEventArgs e ) : void

Gets new messages from the IRC server.

worker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Called when a new message is received.

보호된 메소드들

메소드 설명
OnMessageReceived ( string message ) : void

비공개 메소드들

메소드 설명
Interface ( ) : System.ComponentModel

메소드 상세

Assign() 공개 정적인 메소드

public static Assign ( Interface face ) : void
face Interface
리턴 void

Connect() 공개 메소드

Connects to the specified IRC server, on the specified port.
public Connect ( string p_server, int p_port ) : bool
p_server string The IRC server to connect to.
p_port int The port of the IRC server to connect to.
리턴 bool

Disconnect() 공개 메소드

Disconnects from the IRC server that the current instance of this class is connected to.
public Disconnect ( ) : void
리턴 void

GetData() 공개 메소드

Gets a message from the downstream IRC message buffer.
public GetData ( ) : string
리턴 string

JOIN() 공개 메소드

Sends the JOIN message to the IRC server, with the specified channel to join.
public JOIN ( string p_channel ) : void
p_channel string The channel to join.
리턴 void

NICK() 공개 메소드

Sends the NICK message to the IRC server, with the specified desired nickname.
public NICK ( string p_name ) : void
p_name string The desired nickname.
리턴 void

NOTICE() 공개 메소드

Sends the NOTICE message to the IRC server, with the specified message and target channel.
public NOTICE ( string p_message, string p_target ) : void
p_message string The message to send.
p_target string The channel (or user) to send the message to.
리턴 void

OnMessageReceived() 보호된 메소드

protected OnMessageReceived ( string message ) : void
message string
리턴 void

PART() 공개 메소드

Sends the PART message to the IRC server, to leave the specified channel with the specified leaving message.
public PART ( string p_channel, string p_partMessage ) : void
p_channel string The channel to leave.
p_partMessage string
리턴 void

PRIVMSG() 공개 메소드

Sends the PRIVMSG message to the IRC server, with the specified message and target channel.
public PRIVMSG ( string p_message, string p_target ) : void
p_message string The message to send.
p_target string The channel (or user) to send the message to.
리턴 void

QUIT() 공개 메소드

Sends the QUIT message to the IRC server, with the specified quit message.
public QUIT ( string p_quitMessage ) : void
p_quitMessage string The quit message.
리턴 void

SendData() 공개 메소드

Puts a message on the upstream IRC message buffer.
public SendData ( string p_string ) : void
p_string string The message to put on the upstream IRC message buffer.
리턴 void

USER() 공개 메소드

Sends the USER message to the IRC server, with the specified name, host name, server name, and real name.
public USER ( string p_name, string p_hostname, string p_servername, string p_realname ) : void
p_name string The name to send.
p_hostname string The host name to send (usually ignored by the server).
p_servername string The server name to send (usually ignored by the server).
p_realname string The 'real' name to send.
리턴 void

worker_DoWork() 공개 메소드

Gets new messages from the IRC server.
public worker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
리턴 void

worker_ProgressChanged() 공개 메소드

Called when a new message is received.
public worker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
sender object
e System.ComponentModel.ProgressChangedEventArgs
리턴 void