this sample works, but in the Application.add,  is there a way to know which client is calling this method?
 
 
 
 

Sample handler
==========================
 
A sample handler can be implemented in a few lines of code::
 
    package the.path.to.my;
   
    import org.red5.server.adapter.ApplicationAdapter;
   
    public class Application extends ApplicationAdapter {
       
        public Double add(Double a, Double b){
            return a + b;
        }
   
    }
 
Assuming the sample configuration above, you can call this method using the
following ActionScript snippet::
 
    nc = new NetConnection();
    nc.connect("rtmp://localhost/myapp");
    nc. {
        trace("The result is " + obj);
    }
    nc.call("add", nc, 1, 2);
 
This should give you the output::
 
    The result is 3
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to