MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 55

Server-side actionscript language reference
Table of Contents

Advertisement

Client.getStats()
Availability
Flash Communication Server MX 1.0.
Usage
clientObject.getStats()
Returns
An object with various properties for each statistic returned.
Description
Method; returns statistics for the client including the total number of bytes sent and received,
the number of RTMP messages sent and received, the number of dropped RTMP messages,
and how long it takes the client takes to respond to a ping message.
Example
The following example uses
application.onConnect( newClient ){
stats = newClient.getStats();
trace("Total bytes received: " + stats.bytes_in);
trace("Total bytes sent: " + stats.bytes_out);
trace("RTMP messages received: " + stats.msg_in);
trace("RTMP messages sent: " + stats.msg_out);
trace("RTMP messages dropped: " + stats.msg_dropped);
trace("Ping roundtrip time: " + stats.ping_rtt);
}
See also
Client.readAccess
Client.ip
Availability
Flash Communication Server MX 1.0.
Usage
clientObject.ip
Description
Property (read-only); a string containing the IP address of the Flash client.
Client.getStats()
to output a new client's statisitics:
Client class
55

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents