Ticket #862 (closed Bug: Fixed)
red5-shutdown.bat does not correctly stop red5 on windows
| Reported by: | Squall867 | Owned by: | mondain |
|---|---|---|---|
| Priority: | Major | Component: | App Server |
| Version: | Keywords: | ||
| Cc: |
Description
Hi, I know many people already ask this, but I cannot find any good examples and I'm getting crazy! I just want to make a simple sum function: client gives a and b, and the server returns a+b.
This is my server source(project name is myRed5):
package org.red5.core;
//imports
public class Application extends ApplicationAdapter {
/** {@inheritDoc} */
@Override
public boolean connect(IConnection conn, IScope scope, Object[] params) {
appScope = scope;
System.out.println("Receive connection from: "+conn.getHost());
return true;
}
public int sum(int a,int b){
return a+b;
}
/** {@inheritDoc} */
@Override
public void disconnect(IConnection conn, IScope scope) {
super.disconnect(conn, scope);
}
}
And in client I call it this way:
var conn:NetConnection = new NetConnection();
conn.connect(" rtmp://localhost/myRed5");
conn.call("sum",handler,(4,5));
Server side i get a Method sum with parameters[4] not found in org.red5.core.Application@5b642c
How can I solve this??
