aboutsummaryrefslogtreecommitdiff
path: root/src/Sockets.c
Commit message (Collapse)AuthorAge
* Fixed a debug message.tradke2002-07-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@173 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Moved some functionality over into thorn Socket. Now that HTTPD inherits fromtradke2002-05-14
| | | | | | | this thorn, you need to add it to your thornlist (in addition to HTTPD). git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@164 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Catch 'Connection reset by peer' return code from socket calls.tradke2002-04-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@162 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Print HTTP connect messages only if 'HTTPD::verbose' is set to "yes".tradke2002-03-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@157 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Minor mods to announce selected http port number whenjshalf2002-01-30
| | | | | | | hunting is on. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@152 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
* Bugfix for announcing a redirected URL.tradke2001-11-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@139 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bugfix.tradke2001-11-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@138 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Announce the HTTPD server URL into an HTML file "server_url.html" in directorytradke2001-11-12
| | | | | | | | | HTPPD::announce_server_url_outdir if parameter HTTPD::announce_server_url was set to "yes". This is a dirty hack for SC'01 which will probably be taken back soon. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@137 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Moving John's redirection stuff into a file of its own as it is a logicallygoodale2001-05-18
| | | | | | | | | | | | | | independent system. All files except Startup.c and make.code.defn should be pretty much back at their beta10 state if you're trying to track this change back in time. Redirect stuff is now in Redirect.c and http_Redirect.h. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@129 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Modifications so that all cluster nodes involved in a simulation willjshalf2001-05-18
| | | | | | | | | | | use http server redirect to route web-browsers to the master httpd node. The modifications are able to sense the different between nodes on the same SMP with shared network interface and those on different boxes. Tested on SP2, IA64, and IA32 clusters so far. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@128 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
* FILEVERSION fixallen2001-05-06
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@125 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* CCTK_FILEVERSIONallen2001-05-06
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@124 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* No longer abort run if there's an error in connect, just don't create a newgoodale2001-03-17
| | | | | | | | | | socket. This should hopefully solve the 'connection reset by peer' problem which we saw earlier. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@118 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
* Add in inclusion of util_Network.h for Util_GetHostName .goodale2001-01-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@116 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* GetHostName() went into the flesh.tradke2001-01-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@115 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Adding missing header file.goodale2000-12-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@107 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Missed changing an int to a SOCKET a while back.goodale2000-12-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@106 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Checking for HAVE_SOCKET_TYPE rather than SOCKET to decide if need to definegoodale2000-10-31
| | | | | | | | | | | | | | | | | own SOCKET macro. This is because the NT compiler at NCSA does typedef uint SOCKET; whereas the compiler on my NT where I tested stuff does #define SOCKET uint; so I was previously just checking #ifdef SOCKET. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@100 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Using a signal handler to ignore SIGPIPE as not all architecturesgoodale2000-10-31
| | | | | | | | | support the MSG_NOSIGNAL flag to send and recv. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@99 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Use gethostbyname if necessary and available to get fully qualified name of thegoodale2000-10-20
| | | | | | | | | host. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@94 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added function HTTP_Port(void) to get the port the webserver is running on.goodale2000-10-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@91 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Logic for printing port number to stdout wrong way roundallen2000-09-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@87 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Sorting out things noticed by switching loads of warnings on.goodale2000-09-21
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@78 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bug fixes.goodale2000-09-21
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@76 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added hunting for a port if the specified port is in use - this can begoodale2000-09-21
| | | | | | | | | | | | | switched off by setting the parameter httpd::hunt to false. Added printing of URL to stdout. Fixed up error stuff in Sockets.c so it compiles under NT. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@75 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Stopping SIGPIPE on reads. Currently don't do any other error stuffgoodale2000-09-21
| | | | | | | | | on reads. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@73 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Reworked the socket layer a bit to detect errors when writing to a socket andgoodale2000-09-21
| | | | | | | | | | | take appropriate action. Now it marks the socket closed on most errors, waits till it can write if the buffer is full, or splits the message up if the message was too big for the socket. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@72 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Changing exit to CCTK_Abort.goodale2000-09-18
| | | | | | | | | Getting rid of a stupid const qualifier. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@43 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Changes necessary for NT.goodale2000-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@42 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Using recv and send to read from and write to sockets.goodale2000-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@41 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
* Added socket reuse if the appropriate things are defined.goodale2000-09-17
| | | | | | | | | Use CCTK_Abort rather than exit. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@37 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 headers.goodale2000-09-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@22 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Rationalising headers and checking #ifdefs for their presence.goodale2000-09-15
| | | | | | | | | | You'll probably need to get the latest lib/make/configure etc and do a -config before this will compile for you again. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@10 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Removing non-portable types.goodale2000-09-14
| | | | | | | | | | Uses HAVE_SOCKLEN_T to decide whether to use socklen_t or int for argument to accept. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@7 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