aboutsummaryrefslogtreecommitdiff
path: root/src/Server.c
Commit message (Collapse)AuthorAge
* use C++ map instead of Cactus hash to store page contentsrhaas2012-07-08
| | | | | | | this is because the hash size can get out of hand (GBs) git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@251 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Clean up warning messagesschnetter2005-03-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@218 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Use CCTK_BYTE instead of CCTK_CHAR.schnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@217 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Concerning bug 1699:swhite2004-06-01
| | | | | | | | | Except for a few places where fprintf(stderr... is explicitly #ifdef'ed out as debug code, replaced calls with CCTK_WARN with appropriate warning levels. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@210 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Change to using the terminate_next parameter when terminating the simulationgoodale2004-05-03
| | | | | | | | | rather than calling CCTK_Exit. Fixes CactusConnect/1616. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@198 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Addresses Cactus bug 923swhite2004-04-19
| | | | | | | | | | | | | | | | | | | | | Made the download list to be organized by variable, then by data output type, then by slice. To facilitate list manipulation, added temporarily a list module 'PtrList', which perhaps may prove of more general use in the future. Pursuant to Cactus bug 907 Added parameter HTTPExtra::viewport_refresh_seconds to send Refresh header to web browser. Made ViewPort window to respond to viewport_refresh_seconds parameter General HTML improvements...checked with Amaya and lynx. Re-organized CSS info in HTTPD web pages. Got rid of httpuMimeType code which didn't do anything. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@195 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism.swhite2004-04-13
| | | | | | | | | | | | | | | | | | Changed internal names of http_Auth.h http_Cookies.h http_Steer.h http_Content.h so that HTTPD thorn developers will be required to use this interface, rather than incorrectly explicitly including the source header files. * Protected SString against C++ name mangling * Gave exported functions the HTTP_ prefix * Wrote doc/Content.h * Fixed bug that disabled some steering functionality git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed the thorn HTTPDExtra broken by commit of HTTPD changes.swhite2004-04-07
| | | | | | | | | | | | | | | | | | | Made HTTPDExtra to include headers from HTTPD using the proper Cactus include header mechanism (although it seems to still include files directly from other thorns). Did the same process as before with HTTPD, replacing strcpy and sprintf writes of data of unkown length into automatic buffers with calls to a String module. Altered the namespace mechanism for the String module, using header files rather than defining a preprocessor variable. Caveat: Although I turned it on and looked at the pages it produces, I have not tested this as extensively as HTTPD thorn. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@189 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Regarding Cactus bug report 1632 "HTTPD contains buffer overflows"swhite2004-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Got rid of most strcat/sprintf into automatic array, replaced with a String module that allocates dynamic memory on the heap. 2) Went a long way toward initializing all variables. 3) Tested: Ran two copies with same parfile except different port, one with my changes, one with original. Went through different kinds of pages by hand, checked by eye. 4) Tried to make HTML XHTML 1.0-compliant. Checked with Amaya. One problem: How to deal with raw less-than characters, etc. Made a function to convert them to HTML Character Entities, but isn't clear this will work properly in the forms. So I left these symbols in the forms. 5) Also checked with more primitive browsers, lynx and dillo. 6) Marked a few instances of questionable code with 'SW' To do ----- Document a few new functions, esp. in Content.c git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@187 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* ifdef DEBUG for printf statementlanfer2002-01-31
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@154 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Take out debug statement.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@148 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Callback functions, which serve registered pages, take a 'const cGH *'tradke2002-01-04
| | | | | | | argument now. Also fixed a small memory leak in redirection code. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@145 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* gcc compiler warnings fixed.tradke2001-09-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@134 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@126 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed most of the compiler warnings.tradke2001-04-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@120 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixing a few warnings (lots left) and the FILE_VERSIONsallen2001-02-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@117 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Missing headers.goodale2000-11-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@102 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bug fixes for the until expression stuff.goodale2000-09-20
| | | | | | | | | | | | | | | Added numbers, iteration count and simulation time to items allowed in an expression - so can do iteration+40 < time*100 to stop the simulation when this condition becomes true, should you want to 8-) Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@69 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Check that there is something in the parsed expression before trying togoodale2000-09-20
| | | | | | | | | evaluate it. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@58 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added parameters and control logic for run until iteration or simulation timegoodale2000-09-20
| | | | | | | | | | | or expression. Added parameter and logic for single stepping. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@57 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* All reading from socket is now done with HTTP_Read. HTTP_Read and HTTP_Writegoodale2000-09-18
| | | | | | | | | now both live in Sockets.c. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@40 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Removed 'standalone' parameter as it was redundant - can now start thegoodale2000-09-17
| | | | | | | | | simulation paused. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@33 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added ability to pause and terminate the simulation.goodale2000-09-16
| | | | | | | | | | | | | Also can select how many iterations between steering events. Can now start simulation as 'standalone' twiddle with parameters, then start the simulation, pause it, and kill it. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@31 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Some more stupid malloc errors.goodale2000-09-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@23 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Check for a page with /index.html on the end as well.goodale2000-09-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@18 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Stupid global replace bug.goodale2000-09-15
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@16 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* New function HTTP_Write(request,buffer,size);goodale2000-09-15
| | | | | | | | | | This should be used rather than write(request->filedes,... as then we can add error checking, SSL, etc in transparently. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@14 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Initial version of C http thorn. There are still a fair number of things ongoodale2000-09-14
my to-do list, but it is fairly usable now as far as functionality is concerned. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@2 1faa4e14-9dd3-4be0-9f0e-ffe519881164