The official git repository for OSD-Contiki, the open source OS for the Internet of Things
Find a file
Oliver Schmidt 1895d3a959 Fixed severe bug in PSOCK_READTO (?)
Either I found and fixed a severe bug in PSOCK_READTO() or I misunderstood something completely. To me PSOCK_READTO() is supposed to return if either the supplied character was read or if the user supplied buffer is exhausted - sor far so good.

However if the latter occurs up to now PSOCK_READTO() was continuing to process characters already read from the network (aka present in the uIP buffer) in order to check if the supplied character was found there and adjust the return value accordingly. But this means that the character processed this way were lost forever for the caller as the next call to PSOCK_READTO() would continue to read past the characters processed this way.

Therefore I removed that character processing altogether. So now if the user supplied buffer is exhausted before the supplied character is found the next call to PSOCK_READTO() starts exactly where previous call left off.
2013-02-09 22:22:31 +01:00
apps Allow to reduce functionality if non-standard alloca() isn't available. 2013-02-04 00:49:52 +01:00
core Fixed severe bug in PSOCK_READTO (?) 2013-02-09 22:22:31 +01:00
cpu Adjusted names. 2013-02-09 01:58:37 +01:00
doc Define IPv6 and RPL related macros in Doxygen config 2012-11-07 17:04:13 +01:00
examples Minor uIP code increase from Contiki 2.5 to Contiki 2.6 make a buffer reduction necessary. 2013-02-03 23:41:20 +01:00
platform There's no point in ctk_restore() for standalone GUI builds. 2013-02-09 21:49:00 +01:00
regression-tests Added rtests for 8051 ports 2012-12-16 22:21:44 +00:00
tools Added Atari 800k (MyDOS 4.53/4) floppy image. 2013-02-05 23:06:48 +01:00
.gitignore Added Apple II 3.5" floppy image. 2013-02-05 21:07:54 +01:00
.travis.yml Removed email notifications 2013-01-10 08:16:20 +01:00
LICENSE Removed the explicit year 2012 to make it more generic 2012-10-25 23:08:54 +02:00
Makefile.include Add the uipv6 route function uip-ds6-route.c 2012-11-27 23:04:34 +01:00
README Updated README with new website and shorter text 2012-07-12 11:30:21 +02: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 operating system that runs on tiny low-power
microcontrollers and makes it possible to develop applications that
make efficient use of the hardware while providing standardized
low-power wireless communication for a range of hardware platforms.

Contiki is used in numerous commercial and non-commercial systems,
such as city sound monitoring, street lights, networked electrical
power meters, industrial monitoring, radiation monitoring,
construction site monitoring, alarm systems, remote house monitoring,
and so on.

For more information, see the Contiki website:

http://www.contiki-os.org/