osd-contiki/apps
Oliver Schmidt d4f49fa204 Added explicit rejection of multiple connections.
Although a simple solution the recently introduced approach to just not listen to incoming connetions if there's already one has the downside that one doesn't know if a connection fails because the server is down or becuase there's a connection.
Therefore now connections are always accepted but after sending a message to the user and waiting a few seconds they are closed.
The appstate is used used in a somewhat unusual way here: The one and only "active" connection has an appstate of 0. For all other connections the appstate is initially set to 1. Then it is increased on every uIP poll until it reaches 10, which triggers the connection close. This somewhat hacky approach allows to keep track of the rejected sessions without any additional state variables and/or timers.
2011-05-21 21:03:04 +02:00
..
about 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
calc Minor change. 2009-03-01 12:11:17 +00:00
cmdd A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
codeprop A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
collect-view Moved packet structure into its own header file 2011-01-09 21:08:30 +00:00
deluge ctimer moved from net/rime to sys/ 2010-06-14 18:58:45 +00:00
dhcp 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
directory 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
email A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
ftp Added PETSCII support to the FTP client. It seems reasonable to do this in ftpc.c (instead of ftp.c) as all command connection strings are given in PETSCII in the C source. 2010-10-19 22:30:13 +00:00
irc A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
netconf Updated API for uiplib and resolv to use uip_ipaddr_t instead of uint16_t for compability with IPv6 2010-05-31 15:22:08 +00:00
ping6 Removed void * operations 2011-01-12 22:58:33 +00:00
powertrace Updated to use new Rime sniffer API 2011-05-10 15:48:34 +02:00
process-list 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
program-handler Minor change. 2009-03-01 12:11:17 +00:00
rest-coap Bug fix by Kovatsch Matthias. 2011-04-17 22:50:28 +02:00
rest-common Commented periodic resource related stuff for the sake of small code print and added minimal-net configuration in README. 2011-04-13 00:07:47 +02:00
rest-http Merge remote-tracking branch 'origin/master' 2011-04-12 14:14:45 +02:00
serial-shell Some Telnet server enhancements: 2011-04-16 21:10:22 +02:00
servreg-hack A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
shell Minor beautification / optmization of prompt / banner custimization. 2011-05-21 20:52:00 +02:00
telnet A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
telnetd Added explicit rejection of multiple connections. 2011-05-21 21:03:04 +02:00
twitter A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
unit-test Made it possible to access the results externally. 2011-03-21 09:17:54 +01:00
vnc A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
webbrowser A simple but substantial change: uIP used the htons()/HTONS() macro 2010-10-19 18:29:03 +00:00
webserver Insidious minimal-net segmentation fault if initialized ptr not declared static. 2011-02-19 15:43:43 -05:00