head	1.3;
access;
symbols
	tonic_4:1.3
	tonic_3:1.3
	tonic_2:1.2
	demo:1.2.0.2
	design_report:1.2;
locks; strict;
comment	@ * @;


1.3
date	95.12.15.11.38.58;	author hartmans;	state Exp;
branches;
next	1.2;

1.2
date	95.12.11.10.16.52;	author hartmans;	state Exp;
branches;
next	1.1;

1.1
date	95.12.06.01.56.32;	author hartmans;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Make second argument optional
@
text
@#include <6170.h>
#include <top_node.h>
#include <player.h>
#include <ps5/http_server.h>

main(int argc, char **argv) {
if ((argc > 3) || (argc <2))
    {
	cerr << "Usage: "<<argv[0];
	cerr<< " port [my_url_with_slash]"<<endl;
	exit(1);
    }

    http_server *ns = new http_server (atoi(argv[1]),
				       new top_node(string((argc == 3)?argv[2]:"/"),"http://web.mit.edu/6.170/groups/se01/Public/html/"));

				       while(1)
				       ns->handle_one();
				       }
    
@


1.2
log
@web update for time and main
@
text
@d7 1
a7 1
if (argc != 3)
d10 1
a10 1
	cerr<< " port my_url_with_slash"<<endl;
d15 1
a15 1
				       new top_node(string(argv[2]),"http://web.mit.edu/6.170/groups/se01/Public/html/"));
@


1.1
log
@foo
@
text
@d6 7
a12 3
main() {
    http_server *ns = new http_server (6666,
				       new top_node("http://localhost:6666/","http://web.mit.edu/6.170/groups/se01/Public/html/"));
d14 3
@
