C# 클래스 IrcDotNet.Ctcp.CtcpClient

파일 보기 프로젝트 열기: IrcDotNet/IrcDotNet 1 사용 예제들

공개 메소드들

메소드 설명
CheckErrorOccurred ( IIrcMessageTarget user ) : void

Asks the specified user whether an error just occurred.

CheckErrorOccurred ( IList users ) : void

Asks the specified list of users whether an error just occurred.

CtcpClient ( IrcClient ircClient ) : System

Initializes a new instance of the CtcpClient class.

GetTime ( IIrcMessageTarget user ) : void

Gets the local date/time of the specified user.

GetTime ( IList users ) : void

Gets the local date/time of the specified list of users.

GetVersion ( IIrcMessageTarget user ) : void

Gets the client version of the specified user.

GetVersion ( IList users ) : void

Gets the client version of the specified list of users.

Ping ( IIrcMessageTarget user ) : void

Pings the specified user.

Ping ( IList users ) : void

Pings the specified list of users.

SendAction ( IIrcMessageTarget user, string text ) : void

Sends an action message to the specified list of users.

SendAction ( IList users, string text ) : void

Sends an action message to the specified list of users.

ToString ( ) : string

Returns a string representation of this instance.

보호된 메소드들

메소드 설명
OnActionReceived ( CtcpMessageEventArgs e ) : void

Raises the ActionReceived event.

OnActionSent ( CtcpMessageEventArgs e ) : void

Raises the ActionSent event.

OnError ( IrcErrorEventArgs e ) : void

Raises the Error event.

OnErrorMessageResponseReceived ( CtcpErrorMessageReceivedEventArgs e ) : void

Raises the ErrorMessageReceived event.

OnPingResponseReceived ( CtcpPingResponseReceivedEventArgs e ) : void

Raises the PingResponseReceived event.

OnRawMessageReceived ( CtcpRawMessageEventArgs e ) : void

Raises the RawMessageReceived event.

OnRawMessageSent ( CtcpRawMessageEventArgs e ) : void

Raises the RawMessageSent event.

OnTimeResponseReceived ( CtcpTimeResponseReceivedEventArgs e ) : void

Raises the TimeResponseReceived event.

OnVersionResponseReceived ( CtcpVersionResponseReceivedEventArgs e ) : void

Raises the VersionResponseReceived event.

SendMessageAction ( IList targets, string text ) : void

Sends an action message to the specified target.

SendMessageErrMsg ( IList targets, string tag, bool isResponse ) : void

Sends a request for confirming that no error has occurred.

SendMessagePing ( IList targets, string info, bool isResponse ) : void

Sends a ping request or response to the specified target.

SendMessageTime ( IList targets, string info, bool isResponse ) : void

Sends a request for the local date/time to the specified target.

SendMessageVersion ( IList targets, string info, bool isResponse ) : void

Sends a request or response for information about the version of the client.

WriteMessage ( IList targets, CtcpMessage message ) : void
WriteMessage ( IList targets, string tag, string data = null, bool isResponse = false ) : void

비공개 메소드들

메소드 설명
CtcpDequote ( string value ) : string
CtcpQuote ( string value ) : string
InitializeMessageProcessors ( ) : void
LowLevelDequote ( string value ) : string
LowLevelQuote ( string value ) : string
ProcessMessageAction ( CtcpMessage message ) : void
ProcessMessageErrMsg ( CtcpMessage message ) : void
ProcessMessagePing ( CtcpMessage message ) : void
ProcessMessageTime ( CtcpMessage message ) : void
ProcessMessageVersion ( CtcpMessage message ) : void
ReadMessage ( CtcpMessage message ) : void
ReadMessage ( IrcPreviewMessageEventArgs previewMessageEventArgs, bool isNotice ) : void
WriteMessage ( IList targets, string taggedData, bool isResponse ) : void

Writes the specified message to a target.

ircClient_Connected ( object sender, EventArgs e ) : void
ircClient_Disconnected ( object sender, EventArgs e ) : void
ircClient_LocalUser_PreviewMessageReceived ( object sender, IrcPreviewMessageEventArgs e ) : void
ircClient_LocalUser_PreviewNoticeReceived ( object sender, IrcPreviewMessageEventArgs e ) : void

메소드 상세

CheckErrorOccurred() 공개 메소드

Asks the specified user whether an error just occurred.
public CheckErrorOccurred ( IIrcMessageTarget user ) : void
user IIrcMessageTarget The user to which to send the request.
리턴 void

CheckErrorOccurred() 공개 메소드

Asks the specified list of users whether an error just occurred.
public CheckErrorOccurred ( IList users ) : void
users IList A list of users to which to send the request.
리턴 void

CtcpClient() 공개 메소드

Initializes a new instance of the CtcpClient class.
public CtcpClient ( IrcClient ircClient ) : System
ircClient IrcClient The IRC client by which the CTCP client should communicate.
리턴 System

GetTime() 공개 메소드

Gets the local date/time of the specified user.
public GetTime ( IIrcMessageTarget user ) : void
user IIrcMessageTarget The user to which to send the request.
리턴 void

GetTime() 공개 메소드

Gets the local date/time of the specified list of users.
public GetTime ( IList users ) : void
users IList A list of users to which to send the request.
리턴 void

GetVersion() 공개 메소드

Gets the client version of the specified user.
public GetVersion ( IIrcMessageTarget user ) : void
user IIrcMessageTarget The user to which to send the request.
리턴 void

GetVersion() 공개 메소드

Gets the client version of the specified list of users.
public GetVersion ( IList users ) : void
users IList A list of users to which to send the request.
리턴 void

OnActionReceived() 보호된 메소드

Raises the ActionReceived event.
protected OnActionReceived ( CtcpMessageEventArgs e ) : void
e CtcpMessageEventArgs The instance containing the event data.
리턴 void

OnActionSent() 보호된 메소드

Raises the ActionSent event.
protected OnActionSent ( CtcpMessageEventArgs e ) : void
e CtcpMessageEventArgs The instance containing the event data.
리턴 void

OnError() 보호된 메소드

Raises the Error event.
protected OnError ( IrcErrorEventArgs e ) : void
e IrcErrorEventArgs The instance containing the event data.
리턴 void

OnErrorMessageResponseReceived() 보호된 메소드

Raises the ErrorMessageReceived event.
protected OnErrorMessageResponseReceived ( CtcpErrorMessageReceivedEventArgs e ) : void
e CtcpErrorMessageReceivedEventArgs /// The instance containing the event /// data. ///
리턴 void

OnPingResponseReceived() 보호된 메소드

Raises the PingResponseReceived event.
protected OnPingResponseReceived ( CtcpPingResponseReceivedEventArgs e ) : void
e CtcpPingResponseReceivedEventArgs /// The instance containing the event data. ///
리턴 void

OnRawMessageReceived() 보호된 메소드

Raises the RawMessageReceived event.
protected OnRawMessageReceived ( CtcpRawMessageEventArgs e ) : void
e CtcpRawMessageEventArgs The instance containing the event data.
리턴 void

OnRawMessageSent() 보호된 메소드

Raises the RawMessageSent event.
protected OnRawMessageSent ( CtcpRawMessageEventArgs e ) : void
e CtcpRawMessageEventArgs The instance containing the event data.
리턴 void

OnTimeResponseReceived() 보호된 메소드

Raises the TimeResponseReceived event.
protected OnTimeResponseReceived ( CtcpTimeResponseReceivedEventArgs e ) : void
e CtcpTimeResponseReceivedEventArgs /// The instance containing the event data. ///
리턴 void

OnVersionResponseReceived() 보호된 메소드

Raises the VersionResponseReceived event.
protected OnVersionResponseReceived ( CtcpVersionResponseReceivedEventArgs e ) : void
e CtcpVersionResponseReceivedEventArgs /// The instance containing the event data. ///
리턴 void

Ping() 공개 메소드

Pings the specified user.
public Ping ( IIrcMessageTarget user ) : void
user IIrcMessageTarget The user to which to send the request.
리턴 void

Ping() 공개 메소드

Pings the specified list of users.
public Ping ( IList users ) : void
users IList A list of users to which to send the request.
리턴 void

SendAction() 공개 메소드

Sends an action message to the specified list of users.
public SendAction ( IIrcMessageTarget user, string text ) : void
user IIrcMessageTarget The user to which to send the request.
text string
리턴 void

SendAction() 공개 메소드

Sends an action message to the specified list of users.
public SendAction ( IList users, string text ) : void
users IList A list of users to which to send the request.
text string The text of the message.
리턴 void

SendMessageAction() 보호된 메소드

Sends an action message to the specified target.
protected SendMessageAction ( IList targets, string text ) : void
targets IList A list of the targets of the message.
text string The message text.
리턴 void

SendMessageErrMsg() 보호된 메소드

Sends a request for confirming that no error has occurred.
protected SendMessageErrMsg ( IList targets, string tag, bool isResponse ) : void
targets IList A list of the targets of the message.
tag string A tag that can be used for tracking the response.
isResponse bool /// if the message is a response; , /// otherwise. ///
리턴 void

SendMessagePing() 보호된 메소드

Sends a ping request or response to the specified target.
protected SendMessagePing ( IList targets, string info, bool isResponse ) : void
targets IList A list of the targets of the message.
info string The information to send.
isResponse bool /// if the message is a response; , /// otherwise. ///
리턴 void

SendMessageTime() 보호된 메소드

Sends a request for the local date/time to the specified target.
protected SendMessageTime ( IList targets, string info, bool isResponse ) : void
targets IList A list of the targets of the message.
info string The information to send.
isResponse bool /// if the message is a response; , /// otherwise. ///
리턴 void

SendMessageVersion() 보호된 메소드

Sends a request or response for information about the version of the client.
protected SendMessageVersion ( IList targets, string info, bool isResponse ) : void
targets IList A list of the targets of the message.
info string The information to send.
isResponse bool /// if the message is a response; , /// otherwise. ///
리턴 void

ToString() 공개 메소드

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

WriteMessage() 보호된 메소드

/// contains more than 15 many parameters. /// /// The value of of /// is invalid. ///
protected WriteMessage ( IList targets, CtcpMessage message ) : void
targets IList
message CtcpMessage The message to write.
리턴 void

WriteMessage() 보호된 메소드

protected WriteMessage ( IList targets, string tag, string data = null, bool isResponse = false ) : void
targets IList
tag string The tag of the message.
data string The data contained by the message.
isResponse bool /// if the message is a response to another message; /// , otherwise. ///
리턴 void