Understanding connection flow
The client connects to the server, and the server calls
instance is loaded (if the application is already running,
server-side
onConnect
method determines whether to accept or reject the connection. On the client side, the
handler is called to report whether the connection was accepted or rejected. When
onStatus
the client closes the connection, the server-side
application is unloaded,
To accept the connection in the
application.acceptConnection()
application.rejectConnection()
handler, clients remain pending until
called.
CLIENT FLOW
connect
onStatus
close
Connection flow
Only the client application can initiate a communication session. Both the client and the
server send and receive status messages, open and close streams, save and share data,
and end the network connection.
30
Flash Media Server Architecture
handler is invoked with a newly created Client object. The logic in this
is invoked.
onAppStop
onConnect
; to reject the connection, return
. If
true
acceptConnection()
onAppStart
new Client object
acceptConnection
onDisconnect
Application is
unloaded
onAppStop
onAppStart
onAppStart
handler is called. When the
onDisconnect
handler, return
true
or
are not returned in the
false
or
rejectConnection()
SERVER FLOW
when the application
is not called). Next, the
or call
or call
false
onConnect
onConnect
is
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?