source: trunk/j/src/bsh/commands/server.bsh @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 313 bytes
Line 
1import bsh.util.Httpd;
2import bsh.util.Sessiond;
3
4bsh.help.server = "usage: server(int port)";
5
6server(int port ) {
7  new Thread( new Httpd( port ) ).start();
8  print("Httpd started on port: "+port);
9  new Thread( new Sessiond( global.namespace, port+1 ) ).start();
10  print("Sessiond started on port: "+ (port+1));
11}
Note: See TracBrowser for help on using the repository browser.