From: Jan K. <jj...@gm...> - 2006-11-06 14:05:02
|
Am Montag, 6. November 2006 14:42 schrieb Jan Kandziora: > > What I think I am aiming for is to have a reusable, embeddable httpd > > package. > > Something like this: > > % package require embedhttpd > > 1.0 > > % embedhttpd::init -host 127.0.0.1 -port 81 -webmaster > > <mailto:xx...@yy...> xx...@yy... > > > > % embedhttpd::error_handler my_error_proc > > my_error_proc > > % embedhttpd::url_handler / my_root_proc > > / my_root_proc > > % embedhttpd::start > > Server listening on 127.0.0.1:81 > > > > So my question is: has anyone done something like this before, and do you > > have > > some advice for me? ;) > An addition: The first thing to achieve would be getting rid of all "global" commands in the tclhttpd source in favor of "variable" commands. After this is done, the tclhttpd sources could be "source"d in the embedhttpd namespace. Kind regards Jan -- A truly stable environment would be a concrete basement with no windows! Computers are no different. |