C# Class agsXMPP.XmppClientConnection

Summary description for XmppClient.
Inheritance: XmppConnection
Mostrar archivo Open project: SiteView/ECC8.13 Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return void

Open() public method

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
return void

Open() public method

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
return void

Open() public method

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
return void

Open() public method

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
return void

Open() public method

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
return void

RequestAgents() public method

public RequestAgents ( ) : void
return void

RequestRoster() public method

public RequestRoster ( ) : void
return void

Send() public method

public Send ( Element e ) : void
e Element
return void

SendMyPresence() public method

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

SocketOnConnect() public method

public SocketOnConnect ( object sender ) : void
sender object
return void

SocketOnDisconnect() public method

public SocketOnDisconnect ( object sender ) : void
sender object
return void

SocketOnError() public method

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

StreamParserOnStreamElement() public method

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

StreamParserOnStreamEnd() public method

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

StreamParserOnStreamError() public method

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

StreamParserOnStreamStart() public method

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

UpdateCapsVersion() public method

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

XmppClientConnection() public method

public XmppClientConnection ( ) : System
return System

XmppClientConnection() public method

public XmppClientConnection ( SocketConnectionType type ) : System
type SocketConnectionType
return System

XmppClientConnection() public method

public XmppClientConnection ( string server ) : System
server string
return System

XmppClientConnection() public method

public XmppClientConnection ( string server, int port ) : System
server string
port int
return System