Class net.user1.orbiter.Connection
- Extends net.user1.events.EventDispatcher
Connection is the abstract superclass of HTTPConnection and WebSocketConnection; it is used internally by Orbiter, and is not intended for direct use by Orbiter developers. For information on communication with Union Server, see Orbiter's connect() method, the WebSocketConnection class and the HTTPDirectConnection and HTTPIFrameConnection classes. The Connection class dispatches the following events:
- net.user1.orbiter.ConnectionEvent.BEGIN_CONNECT
- net.user1.orbiter.ConnectionEvent.BEGIN_HANDSHAKE
- net.user1.orbiter.ConnectionEvent.READY
- net.user1.orbiter.ConnectionEvent.CONNECT_FAILURE
- net.user1.orbiter.ConnectionEvent.CLIENT_KILL_CONNECT
- net.user1.orbiter.ConnectionEvent.SERVER_KILL_CONNECT
- net.user1.orbiter.ConnectionEvent.DISCONNECT
- net.user1.orbiter.ConnectionEvent.RECEIVE_UPC
- net.user1.orbiter.ConnectionEvent.SEND_DATA
- net.user1.orbiter.ConnectionEvent.RECEIVE_DATA
- net.user1.orbiter.ConnectionEvent.SESSION_TERMINATED
- net.user1.orbiter.ConnectionEvent.SESSION_NOT_FOUND
|
net.user1.orbiter.Connection(host, port, type)
|
Methods
|
connect()
|
|
|
getHost()
|
|
|
getPort()
|
|
|
getType()
|
|
|
isReady()
|
|
|
setServer(host, port)
|
|
|
toString()
|
- Inherited Methods
- from net.user1.events.EventDispatcher:
- addEventListener()
- dispatchEvent()
- getListeners()
- hasListener()
- removeEventListener()