MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Reference page 6

Server management actionscript language reference
Table of Contents

Advertisement

When the administration server host to which you want to connect is a virtual host (one of
several services on the same machine), make sure to specify the virtual host's domain name, or
IP Address, as part of the URI—for example,
. That
rtmp://www.myVhost.com/admin:1111
way, when you connect to the host machine, you connect to an instance of the server running
on your specified virtual host.
Only valid administrators, as defined in the Users.xml configuration file, can connect to the
server. You must specify two administrative parameters, the user name and the password for a
valid administrator, to the
method.
NetConnection.connect
The following example shows the call that lets the administrator
with password
MHill
connect to the server on
:
635xjh27
localhost
nc = new NetConnection();
nc.connect("rtmp://localhost:1111/admin", "MHill", "635xjh27");
To prevent unauthorized users from accessing the administration server, you should use a
firewall and limit access to the administration server port (port 1111). For more information
about security for Flash Media Server, see the security white papers at
www.macromedia.com/
go/flashmediaserver_security_en.
Syntax example
To make a Server Management ActionScript API call, you'll want to include a callback
handler and any required parameters in your code.
In the following example, the
method is called to retrieve the performance data
getAppStats
of a running application; the callback handler
captures the result of
new receiveAppStats
the call; and the value
is a required parameter that specifies the name of the
ChatApp
application:
nc = new NetConnection();
nc.connect("rtmp://localhost:1111/admin", "MHill", "635xjh27");
// Call getAppStats
nc.call("getAppStats", new receiveAppStats(), "ChatApp");
6
Server Management ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents