C# Class agsXMPP.XmppClientConnection

Summary description for XmppClient.
Inheritance: XmppConnection
Afficher le fichier Open project: SiteView/ECC8.13 Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ChangePassword() public méthode

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
Résultat void

Open() public méthode

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
Résultat void

Open() public méthode

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
Résultat void

Open() public méthode

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
Résultat void

Open() public méthode

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
Résultat void

Open() public méthode

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
Résultat void

RequestAgents() public méthode

public RequestAgents ( ) : void
Résultat void

RequestRoster() public méthode

public RequestRoster ( ) : void
Résultat void

Send() public méthode

public Send ( Element e ) : void
e Element
Résultat void

SendMyPresence() public méthode

Sends our Presence, the packet is built of Status, Show and Priority
public SendMyPresence ( ) : void
Résultat void

SocketOnConnect() public méthode

public SocketOnConnect ( object sender ) : void
sender object
Résultat void

SocketOnDisconnect() public méthode

public SocketOnDisconnect ( object sender ) : void
sender object
Résultat void

SocketOnError() public méthode

public SocketOnError ( object sender, Exception ex ) : void
sender object
ex System.Exception
Résultat void

StreamParserOnStreamElement() public méthode

public StreamParserOnStreamElement ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
Résultat void

StreamParserOnStreamEnd() public méthode

public StreamParserOnStreamEnd ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
Résultat void

StreamParserOnStreamError() public méthode

public StreamParserOnStreamError ( object sender, Exception ex ) : void
sender object
ex System.Exception
Résultat void

StreamParserOnStreamStart() public méthode

public StreamParserOnStreamStart ( object sender, agsXMPP.Xml.Dom.Node e ) : void
sender object
e agsXMPP.Xml.Dom.Node
Résultat void

UpdateCapsVersion() public méthode

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

XmppClientConnection() public méthode

public XmppClientConnection ( ) : System
Résultat System

XmppClientConnection() public méthode

public XmppClientConnection ( SocketConnectionType type ) : System
type SocketConnectionType
Résultat System

XmppClientConnection() public méthode

public XmppClientConnection ( string server ) : System
server string
Résultat System

XmppClientConnection() public méthode

public XmppClientConnection ( string server, int port ) : System
server string
port int
Résultat System