Packagenet.user1.reactor
Classpublic class SecureSocketConnection
InheritanceSecureSocketConnection Inheritance Connection Inheritance flash.events.EventDispatcher

Since : Reactor 2.1.3

The SecureSocketConnection class is used by Reactor to communicate with Union Server over a TLS-encrypted, persistent TCP/IP socket. Normally, developers need not use the SecureSocketConnection class directly, and should instead make secure connections via the Reactor class's secureConnect() method. However, the SecureSocketConnection class is required for fine-grained connection configuration, such as defining failover socket connections for multiple Union servers running at different host addresses (see the example in the ConnectionManager's main class entry).

For non-encrypted TCP/IP socket communications with Union Server, use the XMLSocketConnection class instead of the SecureSocketConnection class.

See also

Reactor.secureConnect()
HTTPConnection
XMLSocketConnection
ConnectionManager


Public Methods
 MethodDefined By
  
SecureSocketConnection(host:String, port:int = 443)
SecureSocketConnection
  
connect():void
[override] For documentation, see IConnection's connect() method.
SecureSocketConnection
 Inherited
disconnect():void
For documentation, see IConnection's disconnect() method.
Connection
  
dispose():void
[override] Permanently disables this XMLSocketConnection.
SecureSocketConnection
 Inherited
getHost():String
For documentation, see IConnection's getHost() method.
Connection
 Inherited
getPort():int
For documentation, see IConnection's getPort() method.
Connection
 Inherited
Returns an integer indicating the number of times this Connection object has successfully achieved a ready state.
Connection
 Inherited
For documentation, see IConnection's getRequestedHost() method.
Connection
 Inherited
getType():String
For documentation, see IConnection's getType() method.
Connection
 Inherited
isReady():Boolean
For documentation, see IConnection's isReady() method.
Connection
 Inherited
isValid():Boolean
For documentation, see IConnection's isValid() method.
Connection
  
send(data:*):void
[override] For documentation, see IConnection's send() method.
SecureSocketConnection
 Inherited
setReactor(reactor:Reactor):void
Connection
 Inherited
setServer(host:String, port:int):void
For documentation, see IConnection's setServer() method.
Connection
 Inherited
toString():String
[override]
Connection
Events
 Event Summary Defined By
 Inherited Dispatched when a connection attempt by an IConnection object begins.Connection
 Inherited Dispatched when an IConnection object initiates the "handshake" phase of a Union Server connection.Connection
 Inherited Dispatched when an IConnection object's connection to the server is closed by the client.Connection
 Inherited Dispatched when a connection attempt by an IConnection object fails.Connection
 Inherited Dispatched when an IConnection object achieves a fully initialized connection to the server.Connection
 Inherited Dispatched whenever any data is received from Union Server by an IConnection object.Connection
   Dispatched when a UPC-formatted message is received by an IConnection object.SecureSocketConnection
 Inherited Dispatched whenever any data is sent to Union Server over an IConnection object.Connection
 Inherited Dispatched when an IConnection object's connection to the server is closed by the server.Connection
 Inherited Dispatched when Union Server informs the client that a session id used in a message from the client refers to an unknown session.Connection
 Inherited Dispatched when Union Server informs the client that its session has been terminated.Connection
Constructor Description
SecureSocketConnection()Constructor
public function SecureSocketConnection(host:String, port:int = 443)



Parameters
host:String
 
port:int (default = 443)
Method Descriptions
connect()method
override public function connect():void

Since : Reactor 2.1.3

For documentation, see IConnection's connect() method.

See also

dispose()method 
override public function dispose():void

Since : Reactor 2.1.3

Permanently disables this XMLSocketConnection.

send()method 
override public function send(data:*):void

Since : Reactor 2.1.3

For documentation, see IConnection's send() method.

Parameters

data:*

See also

Event Detail
RECEIVE_UPC Event
Event Object Type: ConnectionEvent
ConnectionEvent.type variable = net.user1.reactor.ConnectionEvent.RECEIVE_UPC

Dispatched when a UPC-formatted message is received by an IConnection object.

See also