Free (GPLv2) TCP/IP stack developed by TASS Belgium
Dependents: lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more
PicoTCP. Copyright (c) 2013 TASS Belgium NV.
Released under the GNU General Public License, version 2.
Different licensing models may exist, at the sole discretion of the Copyright holders.
Official homepage: http://www.picotcp.com
Bug tracker: https://github.com/tass-belgium/picotcp/issues
Development steps:
initial integration with mbed RTOSgeneric mbed Ethernet driverhigh performance NXP LPC1768 specific Ethernet driverMulti-threading support for mbed RTOSBerkeley sockets and integration with the New Socket APIFork of the apps running on top of the New Socket APIScheduling optimizations- Debugging/benchmarking/testing
Demo application (measuring TCP sender performance):
Import programlpc1768-picotcp-demo
A PicoTCP demo app testing the ethernet throughput on the lpc1768 mbed board.
Diff: modules/pico_tcp.c
- Revision:
- 74:c146c4e346c4
- Parent:
- 73:dfb737147f6e
- Child:
- 75:a9abf10138d6
--- a/modules/pico_tcp.c Fri Sep 27 12:43:36 2013 +0000 +++ b/modules/pico_tcp.c Tue Oct 01 06:13:42 2013 +0000 @@ -346,7 +346,7 @@ static uint32_t pico_paws(void) { - static unsigned long _paws = 0; + static uint32_t _paws = 0; _paws = pico_rand(); return long_be(_paws); /*XXX: implement paws */ } @@ -394,7 +394,7 @@ sb = ts->sacks; ts->sacks = sb->next; memcpy(f->start + i, sb, 2 * sizeof(uint32_t)); - i += (2 * sizeof(uint32_t)); + i += (2 * (uint32_t)sizeof(uint32_t)); f->start[len_off] = (uint8_t)(f->start[len_off] + (2 * sizeof(uint32_t))); pico_free(sb); } @@ -582,7 +582,7 @@ } t->mss_ok = 1; mss = short_from(opt + i); - i += sizeof(uint16_t); + i += (uint32_t)sizeof(uint16_t); if (t->mss > short_be(mss)) t->mss = short_be(mss); break; @@ -596,10 +596,10 @@ } t->ts_ok = 1; tsval = long_from(opt + i); - i += sizeof(uint32_t); + i += (uint32_t)sizeof(uint32_t); tsecr = long_from(opt + i); f->timestamp = long_be(tsecr); - i += sizeof(uint32_t); + i += (uint32_t)sizeof(uint32_t); t->ts_nxt = long_be(tsval); break; }