C# Class bedrock.net.XEP124Socket

Inheritance: bedrock.net.BaseSocket, IHttpSocket, IElementSocket, ISocketEventListener
Show file Open project: PersonifyInc/jabber-net Class Usage Examples

Protected Properties

Property Type Description
ENC System.Text.Encoding

Private Properties

Property 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

Public Methods

Method 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

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

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

Close() public method

Stop polling.
public Close ( ) : void
return void

Connect() public method

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

RequestAccept() public method

Not implemented
public RequestAccept ( ) : void
return void

RequestRead() public method

Start reading.
public RequestRead ( ) : void
return void

RestartStream() public method

Restart stream Reference XEP-0206, Section 5
public RestartStream ( ) : void
return void

StartCompression() public method

Start compression over this connection. Not implemented.
public StartCompression ( ) : void
return void

StartTLS() public method

Start TLS over this connection. Not implemented.
public StartTLS ( ) : void
return void

ToString() public method

Descripton, including URL.
public ToString ( ) : string
return string

Write() public method

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

Write() public method

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

XEP124Socket() public method

Create an instance
public XEP124Socket ( ISocketEventListener listener ) : System
listener ISocketEventListener
return System

Property Details

ENC protected static property

Text encoding. Always UTF-8 for XMPP.
protected static Encoding,System.Text ENC
return System.Text.Encoding