bsh.util.commands.server.bsh Maven / Gradle / Ivy
The newest version!
/**
Create a remote BeanShell listener service attached to
the current interpreter, listening on the specified port.
*/
import bsh.util.Httpd;
import bsh.util.Sessiond;
bsh.help.server = "usage: server(int port)";
void server(int port ) {
new Thread( new Httpd( port ) ).start();
print("Httpd started on port: "+port);
new Thread( new Sessiond( global.namespace, port+1 ) ).start();
print("Sessiond started on port: "+ (port+1));
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy