| Package | sekati.net |
| Class | public class PersistentXMLSocket |
| Inheritance | PersistentXMLSocket flash.net.XMLSocket |
XMLSocket.
See also
| Property | Defined by | ||
|---|---|---|---|
| autoReconnect : Boolean
Whether the socket will attempt to auto-reconnect on disconnect.
| PersistentXMLSocket | ||
| host : String [read-only]
XMLSocket host.
| PersistentXMLSocket | ||
| port : int [read-only]
XMLSocket port.
| PersistentXMLSocket | ||
| RECONNECT_DELAY : int = 30000 [static]
| PersistentXMLSocket | ||
| url : String [read-only]
The XMLSocket URL.
| PersistentXMLSocket | ||
| Property | Defined by | ||
|---|---|---|---|
| _autoReconnect : Boolean | PersistentXMLSocket | ||
| _host : String | PersistentXMLSocket | ||
| _port : int | PersistentXMLSocket | ||
| _reconnectInterval : int | PersistentXMLSocket | ||
| Method | Defined by | ||
|---|---|---|---|
|
PersistentXMLSocket(host:String, port:int, autoConnect:Boolean = true, autoReconnect:Boolean = true)
PersistentXMLSocket Constructor
| PersistentXMLSocket | ||
| Method | Defined by | ||
|---|---|---|---|
|
clearReconnectInterval():void
Clear any reconnect attempts.
| PersistentXMLSocket | ||
|
closeHandler(e:Event):void
Close Handler.
| PersistentXMLSocket | ||
|
configureListeners():void
Configure Socket listeners
| PersistentXMLSocket | ||
|
connectHandler(e:Event):void
Connect Handler.
| PersistentXMLSocket | ||
|
dataHandler(e:DataEvent):void
Data Handler.
| PersistentXMLSocket | ||
|
ioErrorHandler(e:IOErrorEvent):void
IO Error Handler.
| PersistentXMLSocket | ||
|
reconnect():void
Attempt to reconnect to the socket which closed the connection.
| PersistentXMLSocket | ||
|
securityErrorHandler(e:SecurityErrorEvent):void
Security Error Handler.
| PersistentXMLSocket | ||
| Constant | Defined by | ||
|---|---|---|---|
| SOCKET_NULL_CHAR : String = "0" [static]
| PersistentXMLSocket | ||
| _autoReconnect | property |
protected var _autoReconnect:Boolean
| autoReconnect | property |
autoReconnect:Boolean [read-write]Whether the socket will attempt to auto-reconnect on disconnect.
Implementation public function get autoReconnect():Boolean
public function set autoReconnect(value:Boolean):void
| _host | property |
protected var _host:String
| host | property |
host:String [read-only]XMLSocket host.
Implementation public function get host():String
| _port | property |
protected var _port:int
| port | property |
port:int [read-only]XMLSocket port.
Implementation public function get port():int
| RECONNECT_DELAY | property |
public static var RECONNECT_DELAY:int = 30000
| _reconnectInterval | property |
protected var _reconnectInterval:int
| url | property |
url:String [read-only]The XMLSocket URL.
Implementation public function get url():String
| PersistentXMLSocket | () | constructor |
public function PersistentXMLSocket(host:String, port:int, autoConnect:Boolean = true, autoReconnect:Boolean = true)PersistentXMLSocket Constructor
Parametershost:String — the hostname to connect the socket to.
|
|
port:int — the socket port on the host.
|
|
autoConnect:Boolean (default = true) — whether to automatically connect (true), or not (false).
|
|
autoReconnect:Boolean (default = true) — whether to automatically attempt reconnections once the connection is lost (true), or not (false).
|
| clearReconnectInterval | () | method |
protected function clearReconnectInterval():voidClear any reconnect attempts.
| closeHandler | () | method |
protected function closeHandler(e:Event):voidClose Handler.
Parameterse:Event |
| configureListeners | () | method |
protected function configureListeners():voidConfigure Socket listeners
| connectHandler | () | method |
protected function connectHandler(e:Event):voidConnect Handler.
Parameterse:Event |
| dataHandler | () | method |
protected function dataHandler(e:DataEvent):voidData Handler.
Parameterse:DataEvent |
| ioErrorHandler | () | method |
protected function ioErrorHandler(e:IOErrorEvent):voidIO Error Handler.
Parameterse:IOErrorEvent |
| reconnect | () | method |
protected function reconnect():voidAttempt to reconnect to the socket which closed the connection.
| securityErrorHandler | () | method |
protected function securityErrorHandler(e:SecurityErrorEvent):voidSecurity Error Handler.
Parameterse:SecurityErrorEvent |
| SOCKET_NULL_CHAR | constant |
public static const SOCKET_NULL_CHAR:String = "0"