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 RTOS
  • generic mbed Ethernet driver
  • high performance NXP LPC1768 specific Ethernet driver
  • Multi-threading support for mbed RTOS
  • Berkeley sockets and integration with the New Socket API
  • Fork of the apps running on top of the New Socket API
  • Scheduling 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.

Revision:
134:cc4e6d2654d9
Parent:
131:4758606c9316
Child:
136:576dcbb16922
--- a/modules/pico_dns_client.c	Thu Jan 16 10:13:37 2014 +0100
+++ b/modules/pico_dns_client.c	Thu Jan 16 14:46:07 2014 +0100
@@ -289,14 +289,11 @@
 /* determine len of string */
 static uint16_t pico_dns_client_strlen(const char *url)
 {
-    char p = 0;
-    uint16_t len = 0;
+    uint16_t len;
 
-    if (!url)
-        return 0;
-
-    while ((p = *url++) != 0) {
-        len++;
+    for (len=0; len<0xFFFF; len++) {
+        if (url[len] == 0)
+            break;
     }
     return len;
 }
@@ -304,12 +301,12 @@
 /* seek end of string */
 static char *pico_dns_client_seek(char *ptr)
 {
-    char p = 0;
-
     if (!ptr)
         return NULL;
 
-    while ((p = *ptr++) != 0) ;
+    while (*ptr != 0)
+        ptr++;
+
     return ptr++;
 }
 
@@ -776,7 +773,7 @@
     return 0;
 }
 
-int pico_dns_client_init()
+int pico_dns_client_init(void)
 {
     struct pico_ip4 default_ns = {
         0