home *** CD-ROM | disk | FTP | other *** search
- /**
- 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));
- }
-