Commit graph

71 commits

Author SHA1 Message Date
oliverschmidt a6a2d5de9f Fixed recently introduced minor inconsistency. 2010-09-29 09:35:56 +00:00
oliverschmidt cd24e920b6 Made cfs-based webserver example compatible with 8.3 file systems. 2010-09-28 20:40:52 +00:00
oliverschmidt a5dff5e08a Up to now the root of the webserver filesystem was always the current directory. Now an optional file 'wwwroot.cfg' is read. If present its content is used as prefix in the conversion of http paths to local paths. This prefix may be a relative path as well as an absolute path.
This is especially useful for the cc65-based targets as it ain't possible there to "just change into the wwwroot directory and start the webserver using its pathname".
2010-08-30 19:44:38 +00:00
oliverschmidt eebbd2694c Set the maximum number of concurrent web server connections by default to the maximum number of concurrent TCP connections. 2010-04-11 20:54:39 +00:00
oliverschmidt 85082693c5 Added final newline to make GCC happy. 2010-04-11 20:16:56 +00:00
oliverschmidt f22b0dffb3 Made CFS web server pathname length configurable via WEBSERVER_CONF_CFS_PATHLEN and increased default pathname length from 20 to 80 chars in order to allow to actually make use of subdirs. 2010-04-11 20:10:12 +00:00
oliverschmidt eae42d02d5 Added optional URL filtering code to the CFS web server contributed by Kajtar Zsolt (and activated it by default). 2010-04-11 19:18:47 +00:00
oliverschmidt 62e6882946 Include slash in CFS web server state field 'filename' (like in the non-CFS web server). 2010-04-11 15:19:34 +00:00
oliverschmidt 157a95ef19 Reduced code size by removing one PT_WAIT_THREAD call site. 2010-04-11 12:29:07 +00:00
oliverschmidt 48f7992a48 Minor syntax simplification. 2010-04-06 20:41:42 +00:00
oliverschmidt 5a3eb98937 Log requests in PETSCII on CBMs in the non-CFS web server (as was already done in the CFS web server). 2010-04-06 20:35:40 +00:00
oliverschmidt 186ab03dd2 Search for last '.' just like in send_headers(). 2010-04-06 20:16:25 +00:00
oliverschmidt 37d5c753c0 Copy '/404.html' to filename in order to allow send_headers() to send the proper content type. 2010-04-06 20:10:45 +00:00
oliverschmidt d1c4b4968c Added GIF support to the CFS web server (which was already present in the non-CFS web server). 2010-04-06 12:11:41 +00:00
oliverschmidt 69b0727a6d There are no query strings or alike in the CFS web server so the file extensions have to be the actual end of the requested filename. 2010-04-06 12:03:18 +00:00
oliverschmidt 5c75b89ef7 Reduced code size by reducing the SEND_STRING call sites. 2010-04-06 11:49:47 +00:00
oliverschmidt 2a6f169e46 - Added yet another PETSCII->ASCII conversion, this time for the file name in case of a 404.
- Use all lowercase for the 404 message to avoid another PETSCII->ASCII conversion.
- Write logfile entries for all 404s.
- Adjust memory buffers on the C128 to accomodate for the items above.
2010-02-03 23:19:39 +00:00
adamdunkels 815468b442 Added missing argument to send_string() 2010-02-03 21:06:51 +00:00
adamdunkels 6fc0c73bac Reverted the recent addition of the directory listing: instead, a 404 is now sent to indicate that a notfound.html file is missing 2010-02-03 20:41:16 +00:00
adamdunkels e029cf489e When a file was not found, and no notfound.html was found, send directory contents instead 2010-02-02 18:17:55 +00:00
adamdunkels 4938df5c05 Update to Contiki version number 2.4 2010-01-29 18:03:55 +00:00
dak664 0798c56899 Print ipv6 address in weblog and tcp_stats cgi 2009-08-12 18:23:37 +00:00
dak664 8d9f8e3a17 ipv6 address logging 2009-08-11 16:07:54 +00:00
fros4943 51006b3f8d webserver bugfix, caused nightly wget test to fail:
* too many timer_reset will naively increase the start-time, even though timer has not expired. use timer_restart instead
2009-02-09 13:04:37 +00:00
adamdunkels 80c71c9f03 Updated version number in server and user agent strings 2008-11-09 12:27:58 +00:00
adamdunkels 28d52894a0 Reverted raven changes, which are now in the raven-webserver directory 2008-10-14 11:07:57 +00:00
julienabeille 3f394fe927 applications updates for uIPv6 2008-10-14 09:40:11 +00:00
adamdunkels 8906441004 Changed all sprintf() calls to snprintf() to make it useful for systems with very low buffer size 2008-02-24 20:59:51 +00:00
oliverschmidt f5e7da082c Replaced '404.html' with 'notfound.html' as '404.html' is no valid filename for the Apple2 disk operating system ProDOS 8. 2008-02-21 09:25:54 +00:00
oliverschmidt f74e918f00 Adjusted process display cgi to recent change in process states. 2008-02-17 13:59:22 +00:00
oliverschmidt 614fa668cd Removed SELFSTART_PROCESS as AUTOSTART_ENABLE generally serves that purpose - and AUTOSTART_ENABLE gets already set as required :-) 2008-02-08 22:48:28 +00:00
oliverschmidt 0a8f384a40 Allow to optionally (triggered with SELFSTART_PROCESS) self start the application. 2008-02-07 16:28:11 +00:00
oliverschmidt b1e1f07f64 Yet another PETSCII<->ASCII issue solved - this time it caused failure to send the right content type. 2007-12-09 23:35:03 +00:00
oliverschmidt d2d85b4303 Avoid file handle leaks. 2007-12-01 21:27:48 +00:00
oliverschmidt 632240da25 Avoid memory block leaks (and minor code style adjustment). 2007-11-27 23:36:07 +00:00
oliverschmidt 74a6ee69e6 Allow to configure the maximum number of simultaneous connections to the cfs webserver. 2007-11-26 21:50:46 +00:00
oliverschmidt 2a98ace477 Allow to configure the maximum number of simultaneous connections to the cgi webserver. 2007-11-26 21:36:35 +00:00
oliverschmidt ac55fb90e7 Added PETSCII support. 2007-11-26 20:53:00 +00:00
oliverschmidt 7acad03398 Optimzed PETSCII support. 2007-11-25 23:31:11 +00:00
oliverschmidt ace9a6f5fa Optimzed PETSCII support. 2007-11-25 18:39:06 +00:00
oliverschmidt 150fe09d4e Allow to find the scripts on PETSCII machines. 2007-11-25 17:13:56 +00:00
oliverschmidt 4059cd22ce Include 'Referer:' in referer log message. 2007-11-24 13:16:30 +00:00
oliverschmidt 54b8d7ec82 Increased number of simultanious connections from two to three, fixed / streamlined 404.html handling and added logging on tcp resets. 2007-11-22 11:25:08 +00:00
oliverschmidt 764b2738be Removed compiler warnings. 2007-11-18 02:54:45 +00:00
oliverschmidt 38decb056f Removed compiler warning. 2007-11-17 21:12:44 +00:00
oliverschmidt f30a4960c8 Removed compiler warnings. 2007-11-17 20:52:07 +00:00
oliverschmidt 4c6b5b9c17 Removed compiler warnings. 2007-11-17 20:44:07 +00:00
matsutsuka 582a7476d4 *-dsc.c files have been changed to remove forward reference for struct_icon variable, bacause it is strange that this variable is used wholly inside the C source file and declared extern for the forward reference. 2007-09-06 01:36:10 +00:00
matsutsuka 9d4fc0a1a8 Support for z80(sdcc) port.
In order to support, some core modules are modified as follows:

core/sys/dsc.h
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.
- DSC_HEADER is changed to remove extra semicolon.

core/sys/process.h
- process_data_t is expressed by void* in signatures (known bug on sdcc).

core/sys/autostart.h
- autostart_processes is changed to remove extra semicolon.

core/sys/cc.h
- CC_CONF_ASSIGN_AGGREGATE is introduced.
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
  of sdcc bug for an increment.

core/net/hc.c
core/net/uip_arp.c
core/net/uaodv.c
- Aggregation assignments are changed to uip_ipaddr_copy.

core/net/psock.c
core/net/uipbuf.c
core/net/dhcpc.c
apps/shell/shell.c
core/ctk/vnc-server.c
core/ctk/vnc-out.c
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

core/net/uip-over-mesh.c
- An extra semicolon is removed.

apps/dhcp/dhcp-dsc.c
apps/shell/shell-dsc.
apps/ftp/ftp-dsc.c
apps/process-list/process-list-dsc.c
apps/email/email-dsc.c
apps/webserver/webserver-dsc.c
apps/vnc/vnc-dsc.c
apps/vnc/vnc-viewer.h
apps/webbrowser/www-dsc.c
apps/about/about-dsc.c
apps/irc/irc-dsc.c
apps/telnet/telnet-dsc.c
apps/telnetd/telnetd-dsc.c
apps/netconf/netconf-dsc.c
apps/directory/directory-dsc.c
pps/calc/calc-dsc.c
- Modify an extern type to a real declaration, which is static
  to prevent a compile error.

core/net/mac/xmac.c
- Variables cannot be defined in a head of block on sdcc.

core/ctk/ctk.h
core/ctk/ctk.c
apps/program-handler/program-handler.c
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.

Makefile.include
- Add a set of configuration for an assembler.
- $(CLEAN) variable is introduced for customized cleanup.

apps/process-list/process-list.c
- PROCESSLIST_CONF_HEIGHT is introduced to address smaller screen size.

core/lib/ctk-filedialog.c
- FILES_CONF_HEIGHT is introduced to address smaller screen size.
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

apps/vnc/vnc-viewer.c
- A cast is added to prevent a compile error.
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

apps/webbrowser/webclient.c
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
  of sdcc bug for an increment.

core/loader/elfloader.c
- A cast is added to prevent a compile error.

core/net/rime/rimeaddr.c
- An initialization is added to prevent a compile error.

core/net/rime/rudolph0.c
- NULL is changed to 0, because NULL causes a compile error.

core/net/rime/route-discovery.c
- Add an argument to match the definition of nf_callbacks.

cpu/z80/strcasecmp.h
cpu/z80/strcasecmp.c
cpu/z80/contiki-sdcc-conf.h
cpu/z80/mtarch.c
cpu/z80/mtarch.h
cpu/z80/Makefile.z80
- New files to make compilation availble on sdcc.
- Added support for multithreading.
2007-08-30 14:39:16 +00:00
oliverschmidt b16783b148 Moved unused apps file into backyard. 2007-05-26 22:18:11 +00:00