C# Class bedrock.net.XEP124Socket

Inheritance: bedrock.net.BaseSocket, IHttpSocket, IElementSocket, ISocketEventListener
Afficher le fichier Open project: PersonifyInc/jabber-net Class Usage Examples

Protected Properties

Свойство Type Description
ENC System.Text.Encoding

Private Properties

Свойство Type Description
CreateOpenBodyTag jabber.protocol.stream.Body
Enqueue void
FakeReceivedStream bool
FakeTimer void
GetSocket HttpSocket
ISocketEventListener ISocketEventListener
ISocketEventListener bool
ISocketEventListener bool
ISocketEventListener bool
ISocketEventListener void
ISocketEventListener void
ISocketEventListener void
ProcessThread void

Méthodes publiques

Méthode Description
Accept ( Address addr, int backlog ) : void

Accept a socket. Not implemented.

Close ( ) : void

Stop polling.

Connect ( Address addr ) : void

Start polling

RequestAccept ( ) : void

Not implemented

RequestRead ( ) : void

Start reading.

RestartStream ( ) : void

Restart stream Reference XEP-0206, Section 5

StartCompression ( ) : void

Start compression over this connection. Not implemented.

StartTLS ( ) : void

Start TLS over this connection. Not implemented.

ToString ( ) : string

Descripton, including URL.

Write ( XmlElement elem ) : void

Write an XML element to the socket. In this case, the element is queued, so that the write thread can pick it up.

Write ( byte buf, int offset, int len ) : void

Send bytes to the jabber server

XEP124Socket ( ISocketEventListener listener ) : System

Create an instance

Private Methods

Méthode Description
CreateOpenBodyTag ( ) : jabber.protocol.stream.Body
Enqueue ( XmlElement elem ) : void
FakeReceivedStream ( ) : bool
FakeTimer ( object state ) : void
GetSocket ( ) : HttpSocket
ISocketEventListener ( bedrock.net.BaseSocket newSock ) : ISocketEventListener
ISocketEventListener ( bedrock.net.BaseSocket newsocket ) : bool
ISocketEventListener ( bedrock.net.BaseSocket sock, X509Certificate certificate, X509Chain chain, System sslPolicyErrors ) : bool
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
ProcessThread ( ) : void

Method Details

Accept() public méthode

Accept a socket. Not implemented.
public Accept ( Address addr, int backlog ) : void
addr Address
backlog int
Résultat void

Close() public méthode

Stop polling.
public Close ( ) : void
Résultat void

Connect() public méthode

Start polling
public Connect ( Address addr ) : void
addr Address Ignored in this case. Set URL.
Résultat void

RequestAccept() public méthode

Not implemented
public RequestAccept ( ) : void
Résultat void

RequestRead() public méthode

Start reading.
public RequestRead ( ) : void
Résultat void

RestartStream() public méthode

Restart stream Reference XEP-0206, Section 5
public RestartStream ( ) : void
Résultat void

StartCompression() public méthode

Start compression over this connection. Not implemented.
public StartCompression ( ) : void
Résultat void

StartTLS() public méthode

Start TLS over this connection. Not implemented.
public StartTLS ( ) : void
Résultat void

ToString() public méthode

Descripton, including URL.
public ToString ( ) : string
Résultat string

Write() public méthode

Write an XML element to the socket. In this case, the element is queued, so that the write thread can pick it up.
public Write ( XmlElement elem ) : void
elem System.Xml.XmlElement
Résultat void

Write() public méthode

Send bytes to the jabber server
public Write ( byte buf, int offset, int len ) : void
buf byte
offset int
len int
Résultat void

XEP124Socket() public méthode

Create an instance
public XEP124Socket ( ISocketEventListener listener ) : System
listener ISocketEventListener
Résultat System

Property Details

ENC protected_oe static_oe property

Text encoding. Always UTF-8 for XMPP.
protected static Encoding,System.Text ENC
Résultat System.Text.Encoding