C# 클래스 agsXMPP.IqGrabber

상속: PacketGrabber
파일 보기 프로젝트 열기: SiteView/ECC8.13 1 사용 예제들

공개 메소드들

메소드 설명
IqGrabber ( XmppClientConnection conn ) : System

OnIq ( object sender, agsXMPP.protocol.client.IQ iq ) : void

An IQ Element is received. Now check if its one we are looking for and raise the event in this case.

Remove ( string id ) : void

Pending request can be removed. This is useful when a ressource for the callback is destroyed and we are not interested anymore at the result.

SendIq ( agsXMPP.protocol.client.IQ iq ) : agsXMPP.protocol.client.IQ

Sends an Iq synchronous and return the response or null on timeout. Timeout time used is SynchronousTimeout

SendIq ( agsXMPP.protocol.client.IQ iq, int timeout ) : agsXMPP.protocol.client.IQ

Sends an Iq synchronous and return the response or null on timeout

SendIq ( agsXMPP.protocol.client.IQ iq, IqCB cb, object cbArg ) : void

Send an IQ Request and store the object with callback in the Hashtable

비공개 메소드들

메소드 설명
SynchronousIqResult ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void

Callback for synchronous iq grabbing

메소드 상세

IqGrabber() 공개 메소드

public IqGrabber ( XmppClientConnection conn ) : System
conn XmppClientConnection
리턴 System

OnIq() 공개 메소드

An IQ Element is received. Now check if its one we are looking for and raise the event in this case.
public OnIq ( object sender, agsXMPP.protocol.client.IQ iq ) : void
sender object
iq agsXMPP.protocol.client.IQ
리턴 void

Remove() 공개 메소드

Pending request can be removed. This is useful when a ressource for the callback is destroyed and we are not interested anymore at the result.
public Remove ( string id ) : void
id string ID of the Iq we are not interested anymore
리턴 void

SendIq() 공개 메소드

Sends an Iq synchronous and return the response or null on timeout. Timeout time used is SynchronousTimeout
public SendIq ( agsXMPP.protocol.client.IQ iq ) : agsXMPP.protocol.client.IQ
iq agsXMPP.protocol.client.IQ The IQ to send
리턴 agsXMPP.protocol.client.IQ

SendIq() 공개 메소드

Sends an Iq synchronous and return the response or null on timeout
public SendIq ( agsXMPP.protocol.client.IQ iq, int timeout ) : agsXMPP.protocol.client.IQ
iq agsXMPP.protocol.client.IQ The IQ to send
timeout int
리턴 agsXMPP.protocol.client.IQ

SendIq() 공개 메소드

Send an IQ Request and store the object with callback in the Hashtable
public SendIq ( agsXMPP.protocol.client.IQ iq, IqCB cb, object cbArg ) : void
iq agsXMPP.protocol.client.IQ The iq to send
cb IqCB the callback function which gets raised for the response
cbArg object additional object for arguments
리턴 void