Package | org.igniterealtime.xiff.core |
Class | public class XMPPRTMPConnection |
Inheritance | XMPPRTMPConnection ![]() ![]() |
Implements | IXMPPConnection |
XMPPConnection
, this class makes use of the
Flash RTMP connection instead of the Socket
.
See also
Method | Defined By | ||
---|---|---|---|
XMPPRTMPConnection(url:String = rtmp:/xmpp) | XMPPRTMPConnection | ||
connect(streamType:uint = 0):void [override] | XMPPRTMPConnection | ||
![]() | disableExtensions(... exts):void
Disable the given extensions from the registery. | XMPPConnection | |
![]() | disableSASLMechanism(name:String):void
Remove a SASL mechanism from this connection
| XMPPConnection | |
disconnect():void [override] | XMPPRTMPConnection | ||
![]() | enableExtensions(... exts):void
Enable the given extensions for interacting with the incoming data. | XMPPConnection | |
![]() | enableSASLMechanism(name:String, authClass:Class):void
Add a SASL mechanism available for this connection
| XMPPConnection | |
![]() | send(data:IXMPPStanza):void
Sends data to the server. | XMPPConnection | |
sendKeepAlive():void [override]
No need for keepalive
| XMPPRTMPConnection | ||
xmppRecieve(rawXML:String):void
Is the name of this method locked in the server side?
| XMPPRTMPConnection |
Method | Defined By | ||
---|---|---|---|
![]() | beginAuthentication():void
SASL Authentication should been set up, begin the authentication
process by sending the initial request. | XMPPConnection | |
![]() | bindConnection():void
Upon being so informed that resource binding is required, the client
MUST bind a resource to the stream by sending to the server an IQ
stanza of type "set" (see IQ Semantics (Section 9.2.3)) containing
data qualified by the 'urn:ietf:params:xml:ns:xmpp-bind' namespace. | XMPPConnection | |
![]() | checkIncomingData(bytedata:ByteArray):XML
Check if the incoming data is complete once added to any existing
incoming data. | XMPPConnection | |
![]() | chooseStreamTags(type:uint):void
Choose the stream start and ending tags based on the given type. | XMPPConnection | |
![]() | configureAuthMechanisms(mechanisms:XML):void
Use the authentication which is first in the list (saslMechanisms) if possible. | XMPPConnection | |
![]() | configureStreamCompression(method:String = zlib):void
Zlib is the most common and the one which is required to be implemented in case
Stream Compression is used. | XMPPConnection | |
createConnection():void [override]
Called from XMPPConnection() constructor. | XMPPRTMPConnection | ||
![]() | dispatchError(condition:String, message:String, type:String, code:int = 0, extension:Extension = null):void | XMPPConnection | |
![]() | establishSession():void
Runs after binding
| XMPPConnection | |
![]() | flushPresenceQueue(event:TimerEvent):void
Dispatches a single PresenceEvent in case there are any in the
queue. | XMPPConnection | |
![]() | handleAuthentication(response:XML):void
Upon receiving a success indication within the SASL negotiation, the
client MUST send a new stream header to the server, to which the
server MUST respond with a stream header as well as a list of
available stream features. | XMPPConnection | |
![]() | handleMessage(node:XML):void
TODO: Add similar extension handling as in IQ,
after message specific extensions are separated from Message class, v3.2.0
| XMPPConnection | |
![]() | handleNodeType(node:XML):void
Calls a appropriate parser base on the nodeName. | XMPPConnection | |
![]() | handlePresence(node:XML):Presence
Handle the incoming Presence either with the queue timer or directly
dispatching the PresenceEvent. | XMPPConnection | |
![]() | handleStream(node:XML):void
Initial stream element has been received once this method is called. | XMPPConnection | |
![]() | handleStreamError(node:XML):void
Handle stream error related element. | XMPPConnection | |
![]() | handleStreamFeatures(node:XML):void
Handle features that are available in the connected server. | XMPPConnection | |
![]() | handleStreamTLS(node:XML):void
Checks if the TLS feature available is required or not and dispatches
an error in case it is. | XMPPConnection | |
![]() | onIOError(event:IOErrorEvent):void
This fires the standard dispatchError method
| XMPPConnection | |
![]() | parseDataReceived(bytedata:ByteArray):void
Parses the data which the socket just received. | XMPPConnection | |
![]() | removeSocketEventListeners():void
Remove those listeners that the createConnection method added. | XMPPConnection | |
restartStream():void [override] | XMPPRTMPConnection | ||
![]() | sendData(data:String):void
Dispatches OutgoingDataEvent, handles possible Stream Compression and
calls sendDataToServer. | XMPPConnection | |
sendDataToServer(data:ByteArray):void [override] | XMPPRTMPConnection | ||
![]() | sendXML(data:String):void
Pass through to sendData which takes care of the common
data handling between all connection classes. | XMPPConnection | |
![]() | serviceDiscoveryResponce(to:EscapedJID, id:String):void
Send a response to the Service Discovery query. | XMPPConnection |
XMPPRTMPConnection | () | Constructor |
public function XMPPRTMPConnection(url:String = rtmp:/xmpp)
Parameters
url:String (default = rtmp:/xmpp )
|
connect | () | method |
override public function connect(streamType:uint = 0):void
Parameters
streamType:uint (default = 0 )
|
createConnection | () | method |
override protected function createConnection():void
Called from XMPPConnection()
constructor.
disconnect | () | method |
override public function disconnect():void
restartStream | () | method |
override protected function restartStream():void
sendDataToServer | () | method |
override protected function sendDataToServer(data:ByteArray):void
Parameters
data:ByteArray |
sendKeepAlive | () | method |
override public function sendKeepAlive():void
No need for keepalive
xmppRecieve | () | method |
public function xmppRecieve(rawXML:String):void
Is the name of this method locked in the server side?
Parameters
rawXML:String |