C# Class agsXMPP.XmppComponentConnection

use this class to write components that connect to a Jabebr/XMPP server

http://www.xmpp.org/extensions/xep-0114.html

Inheritance: XmppConnection
Mostra file Open project: SiteView/ECC8.13 Class Usage Examples

Public Methods

Method Description
Open ( ) : void
Open ( string server, int port ) : void

Send ( Element e ) : void
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
StreamParserOnStreamStart ( object sender, agsXMPP.Xml.Dom.Node e ) : void
XmppComponentConnection ( ) : System

Creates a new Component Connection to a given server and port

XmppComponentConnection ( string server, int port ) : System

Creates a new Component Connection to a given server and port

XmppComponentConnection ( string server, int port, string password ) : System

Creates a new Component Connection to a given server, port and password (secret)

Private Methods

Method Description
CleanupSession ( ) : void
Login ( ) : void
SendOpenStream ( ) : void
_Open ( ) : void
m_StreamParser_OnStreamError ( object sender, Exception ex ) : void

Method Details

Open() public method

public Open ( ) : void
return void

Open() public method

public Open ( string server, int port ) : void
server string
port int
return void

Send() public method

public Send ( Element e ) : void
e Element
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

StreamParserOnStreamStart() public method

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

XmppComponentConnection() public method

Creates a new Component Connection to a given server and port
public XmppComponentConnection ( ) : System
return System

XmppComponentConnection() public method

Creates a new Component Connection to a given server and port
public XmppComponentConnection ( string server, int port ) : System
server string host/ip of the listening server
port int port the server listens for the connection
return System

XmppComponentConnection() public method

Creates a new Component Connection to a given server, port and password (secret)
public XmppComponentConnection ( string server, int port, string password ) : System
server string host/ip of the listening server
port int port the server listens for the connection
password string password
return System