C# 클래스 agsXMPP.XmppClientConnection

Summary description for XmppClient.
상속: XmppConnection
파일 보기 프로젝트 열기: SiteView/ECC8.13 1 사용 예제들

공개 메소드들

메소드 설명
ChangePassword ( string newPass ) : void

Changing the Password. You should use this function only when connected with SSL or TLS because the password is sent in plain text over the connection.

After this request was successful the new password is set automatically in the Username Property

Open ( ) : void

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event

Open ( string username, string password ) : void

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event

Open ( string username, string password, int priority ) : void

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event

Open ( string username, string password, string resource ) : void

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event

Open ( string username, string password, string resource, int priority ) : void

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event

RequestAgents ( ) : void
RequestRoster ( ) : void
Send ( Element e ) : void
SendMyPresence ( ) : void

Sends our Presence, the packet is built of Status, Show and Priority

SocketOnConnect ( object sender ) : void
SocketOnDisconnect ( object sender ) : void
SocketOnError ( object sender, Exception ex ) : void
StreamParserOnStreamElement ( object sender, agsXMPP.Xml.Dom.Node e ) : void
StreamParserOnStreamEnd ( object sender, agsXMPP.Xml.Dom.Node e ) : void
StreamParserOnStreamError ( object sender, Exception ex ) : void
StreamParserOnStreamStart ( object sender, agsXMPP.Xml.Dom.Node e ) : void
UpdateCapsVersion ( ) : void

Sets the caps version automatically from the DiscoInfo object. Call this member after each change of the DiscoInfo object

XmppClientConnection ( ) : System
XmppClientConnection ( SocketConnectionType type ) : System
XmppClientConnection ( string server ) : System
XmppClientConnection ( string server, int port ) : System

비공개 메소드들

메소드 설명
BuildMyJid ( ) : Jid

Refreshes the myJid Member Variable

CleanupSession ( ) : void

Does the Clieanup of the Session and sends the OnClose Event

DoRaiseEventBinded ( ) : void
FireOnAuthError ( Element e ) : void
GetRegistrationFields ( object data ) : void

requests the registration fields

InitSaslHandler ( ) : void
OnAgents ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
OnAuthenticate ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
OnChangePasswordResult ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void

OnGetAuthInfo ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
OnRegisterResult ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
OnRegistrationFieldsResult ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
OnRosterIQ ( agsXMPP.protocol.client.IQ iq ) : void
OpenSocket ( ) : void
PickSRVRecord ( ) : agsXMPP.Net.Dns.SRVRecord

Picks one of the SRV records. priority and weight are evaluated by the following algorithm.

RaiseOnLogin ( ) : void
RemoveSrvRecord ( agsXMPP.Net.Dns.SRVRecord rec ) : void
RequestLoginInfo ( ) : void
Reset ( ) : void
ResolveSrv ( ) : void

Resolves the connection host of a xmpp domain when SRV records are set

SendStreamHeader ( bool startParser ) : void
SetConnectServerFromSRVRecords ( ) : void
_Open ( ) : void
m_SaslHandler_OnSaslEnd ( object sender ) : void
m_SaslHandler_OnSaslStart ( object sender, agsXMPP.Sasl.SaslEventArgs args ) : void

메소드 상세

ChangePassword() 공개 메소드

Changing the Password. You should use this function only when connected with SSL or TLS because the password is sent in plain text over the connection.

After this request was successful the new password is set automatically in the Username Property

public ChangePassword ( string newPass ) : void
newPass string value of the new password
리턴 void

Open() 공개 메소드

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event
public Open ( ) : void
리턴 void

Open() 공개 메소드

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event
public Open ( string username, string password ) : void
username string your username
password string your password
리턴 void

Open() 공개 메소드

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event
public Open ( string username, string password, int priority ) : void
username string your username
password string your password
priority int priority which will be sent with presence packets
리턴 void

Open() 공개 메소드

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event
public Open ( string username, string password, string resource ) : void
username string your username
password string your passowrd
resource string resource for this connection
리턴 void

Open() 공개 메소드

This method open the connections to the xmpp server and authenticates you to ther server. This method is async, don't assume you are already connected when it returns. You have to wait for the OnLogin Event
public Open ( string username, string password, string resource, int priority ) : void
username string your username
password string your password
resource string resource for this connection
priority int priority which will be sent with presence packets
리턴 void

RequestAgents() 공개 메소드

public RequestAgents ( ) : void
리턴 void

RequestRoster() 공개 메소드

public RequestRoster ( ) : void
리턴 void

Send() 공개 메소드

public Send ( Element e ) : void
e Element
리턴 void

SendMyPresence() 공개 메소드

Sends our Presence, the packet is built of Status, Show and Priority
public SendMyPresence ( ) : void
리턴 void

SocketOnConnect() 공개 메소드

public SocketOnConnect ( object sender ) : void
sender object
리턴 void

SocketOnDisconnect() 공개 메소드

public SocketOnDisconnect ( object sender ) : void
sender object
리턴 void

SocketOnError() 공개 메소드

public SocketOnError ( object sender, Exception ex ) : void
sender object
ex System.Exception
리턴 void

StreamParserOnStreamElement() 공개 메소드

public StreamParserOnStreamElement ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
리턴 void

StreamParserOnStreamEnd() 공개 메소드

public StreamParserOnStreamEnd ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
리턴 void

StreamParserOnStreamError() 공개 메소드

public StreamParserOnStreamError ( object sender, Exception ex ) : void
sender object
ex System.Exception
리턴 void

StreamParserOnStreamStart() 공개 메소드

public StreamParserOnStreamStart ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
리턴 void

UpdateCapsVersion() 공개 메소드

Sets the caps version automatically from the DiscoInfo object. Call this member after each change of the DiscoInfo object
public UpdateCapsVersion ( ) : void
리턴 void

XmppClientConnection() 공개 메소드

public XmppClientConnection ( ) : System
리턴 System

XmppClientConnection() 공개 메소드

public XmppClientConnection ( SocketConnectionType type ) : System
type SocketConnectionType
리턴 System

XmppClientConnection() 공개 메소드

public XmppClientConnection ( string server ) : System
server string
리턴 System

XmppClientConnection() 공개 메소드

public XmppClientConnection ( string server, int port ) : System
server string
port int
리턴 System