The official git repository for OSD-Contiki, the open source OS for the Internet of Things
Go to file
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
apps Added explicit rejection of multiple connections. 2011-05-21 21:03:04 +02:00
core Fix compiler warning for unused variable 2011-05-18 11:22:25 -04:00
cpu Merge remote branch 'libmc1322x/master' 2011-05-14 21:19:47 -04:00
doc Bumped version number 2010-11-02 10:55:32 +00:00
examples Removed example for deprecated Rime abstraction 2011-05-12 15:14:41 +02:00
platform Added resource definition for leds and button 2011-05-20 14:27:53 +02:00
tools Format debug packet output for Wireshark import, as default. 2011-05-18 12:48:02 -04:00
.gitignore cleaned up main 2011-03-26 10:15:49 +01:00
Makefile.include Don't create an object directory if target does not exist 2011-03-10 14:59:21 -05:00
README Testing another commit 2011-02-03 22:51:39 +01:00
README-BUILDING Add some info on the DEFINES= / savedefines mechanism. 2008-06-12 22:13:59 +00:00
README-EXAMPLES Added CTK standalone FTP client example. 2010-10-16 10:36:20 +00:00

The Contiki Operating System

Contiki is an open source, highly portable, multi-tasking operating
system for memory-constrained networked embedded systems written by
Adam Dunkels at the Networked Embedded Systems group at the Swedish
Institute of Computer Science.

Contiki is designed for embedded systems with small amounts of
memory. A typical Contiki configuration is 2 kilobytes of RAM and 40
kilobytes of ROM. Contiki consists of an event-driven kernel on top of
which application programs are dynamically loaded and unloaded at
runtime. Contiki processes use light-weight protothreads that provide
a linear, thread-like programming style on top of the event-driven
kernel. Contiki also supports per-process optional preemptive
multi-threading, interprocess communication using message passing
through events, as well as an optional GUI subsystem with either
direct graphic support for locally connected terminals or networked
virtual display with VNC or over Telnet.

Contiki contains two communication stacks: uIP and Rime. uIP is a
small RFC-compliant TCP/IP stack that makes it possible for Contiki to
communicate over the Internet. Rime is a lightweight communication
stack designed for low-power radios. Rime provides a wide range of
communication primitives, from best-effort local area broadcast, to
reliable multi-hop bulk data flooding.

Contiki runs on a variety of platform ranging from embedded
microcontrollers such as the MSP430 and the AVR to old
homecomputers. Code footprint is on the order of kilobytes and memory
usage can be configured to be as low as tens of bytes.

Contiki is written in the C programming language and is freely
available as open source under a BSD-style license. More information
about Contiki can be found at the Contiki home page:

http://www.sics.se/contiki/