What is the purpose of this code? It is in one of the demo
Application.java files. Is this method called every time a new client
attaches to the server? If so, can I set a counter in here and put it
in a shared object attribute to see how many connections we have?
Is the value in setMaxBurst() in bytes or bits? The docs seem to say
bytes, so that would be a max of 8 mega BYTES. Is this for each client
or is it overall bandwidth for all clients attached to this application?
Sorry for so many questions and to sound so stupid. I'm preparing for a
demo/test that could reach up to 80 MegaBits on our one server on the
LAN - has anyone ever tested Red5 up to 80 MBits (500 connections at
150kbs)??
@Override
public boolean appConnect(IConnection conn, Object[] params) {
measureBandwidth(conn);
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn =
(IStreamCapableConnection) conn;
SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure();
sbc.setMaxBurst(8 * 1024 * 1024);
sbc.setBurst(8 * 1024 * 1024);
sbc.setOverallBandwidth(2 * 1024 * 1024);
streamConn.setBandwidthConfigure(sbc);
}
return super.appConnect(conn, params);
}
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org