C# 클래스 jabber.connection.HttpStanzaStream

상속: jabber.connection.StanzaStream, ISocketEventListener
파일 보기 프로젝트 열기: PersonifyInc/jabber-net

공개 메소드들

메소드 설명
Accept ( ) : void

Listens for an inbound connection.

Close ( bool clean ) : void

Closes the socket connection.

Connect ( ) : void

Connects the outbound socket.

InitializeStream ( ) : void

Sets up the element stream. This is the place to add factories.

IsInitialized ( ) : bool

Property representing stream init state

StartTLS ( ) : void

Negotiates Start-TLS with the other endpoint.

Write ( XmlElement elem ) : void

Writes a full stanza.

Write ( string str ) : void

Writes a string to the stream.

WriteStartTag ( jabber stream ) : void

Writes a stream:stream start tag.

보호된 메소드들

메소드 설명
CreateSocket ( ) : bedrock.net.BaseSocket

Create a socket of the correct type.

비공개 메소드들

메소드 설명
HttpStanzaStream ( IStanzaEventListener listener ) : System

Create a new one.

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

메소드 상세

Accept() 공개 메소드

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

Close() 공개 메소드

Closes the socket connection.
public Close ( bool clean ) : void
clean bool Sends the stream:stream close packet if true.
리턴 void

Connect() 공개 메소드

Connects the outbound socket.
public Connect ( ) : void
리턴 void

CreateSocket() 보호된 추상적인 메소드

Create a socket of the correct type.
protected abstract CreateSocket ( ) : bedrock.net.BaseSocket
리턴 bedrock.net.BaseSocket

InitializeStream() 공개 메소드

Sets up the element stream. This is the place to add factories.
public InitializeStream ( ) : void
리턴 void

IsInitialized() 공개 메소드

Property representing stream init state
public IsInitialized ( ) : bool
리턴 bool

StartTLS() 공개 메소드

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

Write() 공개 메소드

Writes a full stanza.
public Write ( XmlElement elem ) : void
elem System.Xml.XmlElement The stanza to write out.
리턴 void

Write() 공개 메소드

Writes a string to the stream.
public Write ( string str ) : void
str string /// The string to write; this will be transcoded to UTF-8. ///
리턴 void

WriteStartTag() 공개 메소드

Writes a stream:stream start tag.
public WriteStartTag ( jabber stream ) : void
stream jabber Stream containing the stream:stream packet to send.
리턴 void