C# Class jabber.connection.SocketStanzaStream

Inheritance: jabber.connection.StanzaStream, ISocketEventListener
Show file Open project: codebutler/jabber-net Class Usage Examples

Private Properties

Property Type Description
DoKeepAlive void
ISocketEventListener ISocketEventListener
ISocketEventListener bool
ISocketEventListener bool
ISocketEventListener bool
ISocketEventListener void
ISocketEventListener void
ISocketEventListener void
SocketStanzaStream System
m_elements_OnDocumentEnd void
m_elements_OnDocumentStart void
m_elements_OnElement void
m_elements_OnError void

Public Methods

Method Description
Accept ( ) : void

Listens for an inbound connection.

Close ( bool clean ) : void

Closes the session with the XMPP server.

Connect ( ) : void

Connects to the XMPP server.

InitializeStream ( ) : void

Initializes the element stream. This is the place to add factories.

StartCompression ( ) : void

Starts compressing outgoing traffic for this connection with the XMPP server.

StartTLS ( ) : void

Negotiates Start-TLS with the other endpoint.

Write ( XmlElement elem ) : void

Writes a full stanza.

Write ( string str ) : void

Writes the given string to the socket after UTF-8 encoding.

WriteStartTag ( jabber stream ) : void

Writes a stream:stream.

Private Methods

Method Description
DoKeepAlive ( object state ) : void
ISocketEventListener ( bedrock.net.BaseSocket newSock ) : ISocketEventListener
ISocketEventListener ( bedrock.net.BaseSocket newsocket ) : bool
ISocketEventListener ( bedrock.net.BaseSocket sock, System certificate, System chain, System sslPolicyErrors ) : bool

An invalid peer certificate was sent during SSL/TLS neogtiation.

ISocketEventListener ( bedrock.net.BaseSocket sock, byte buf, int offset, int length ) : bool
ISocketEventListener ( bedrock.net.BaseSocket sock ) : void
ISocketEventListener ( bedrock.net.BaseSocket sock, Exception ex ) : void
ISocketEventListener ( bedrock.net.BaseSocket sock, byte buf, int offset, int length ) : void
SocketStanzaStream ( IStanzaEventListener listener ) : System

Create a new one.

m_elements_OnDocumentEnd ( object sender ) : void
m_elements_OnDocumentStart ( object sender, XmlElement rp ) : void
m_elements_OnElement ( object sender, XmlElement rp ) : void
m_elements_OnError ( object sender, Exception ex ) : void

Method Details

Accept() public method

Listens for an inbound connection.
public Accept ( ) : void
return void

Close() public method

Closes the session with the XMPP server.
public Close ( bool clean ) : void
clean bool Sends the close stanza to the XMPP server if true.
return void

Connect() public method

Connects to the XMPP server.
public Connect ( ) : void
return void

InitializeStream() public method

Initializes the element stream. This is the place to add factories.
public InitializeStream ( ) : void
return void

StartCompression() public method

Starts compressing outgoing traffic for this connection with the XMPP server.
public StartCompression ( ) : void
return void

StartTLS() public method

Negotiates Start-TLS with the other endpoint.
public StartTLS ( ) : void
return void

Write() public method

Writes a full stanza.
public Write ( XmlElement elem ) : void
elem System.Xml.XmlElement XML stanza to write.
return void

Write() public method

Writes the given string to the socket after UTF-8 encoding.
public Write ( string str ) : void
str string String to write out.
return void

WriteStartTag() public method

Writes a stream:stream.
public WriteStartTag ( jabber stream ) : void
stream jabber Stream containing the stream:stream packet to send.
return void