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:
122:5b1e9de8bf7f
Parent:
73:dfb737147f6e
Child:
131:4758606c9316
--- a/modules/pico_zmq.c	Thu Nov 21 09:35:58 2013 +0000
+++ b/modules/pico_zmq.c	Thu Nov 21 09:48:05 2013 +0000
@@ -33,7 +33,7 @@
 struct __attribute__((packed)) zmq_msg {
    uint8_t flags;
     uint8_t len;
-    char    txt[0];
+    char    txt[];
 };
 
 struct zmq_socket;
@@ -351,6 +351,7 @@
 {
   struct pico_ip4 ip = {0};
   struct zmq_connector *z_c;
+  uint8_t sockopts = 1;
   if (pico_string_to_ipv4(address, &ip.addr) < 0) {
     dbg("FIXME!! I need to synchronize with the dns client to get to my publisher :(\n");
     return -1;
@@ -366,6 +367,7 @@
     pico_free(z_c);
     return -1;
   }
+  pico_socket_setoption(z_c->sock, PICO_TCP_NODELAY, &sockopts);
   if (pico_socket_connect(z_c->sock, &ip, short_be(port)) < 0)
     return -1;
   zmq_connector_add(z, z_c);
@@ -376,12 +378,15 @@
 {
   struct pico_socket *s;
   struct pico_ip4 inaddr_any = {0};
+  uint8_t sockopts = 1;
   uint16_t port = short_be(_port);
   ZMQ z = NULL;
   s = pico_socket_open(PICO_PROTO_IPV4, PICO_PROTO_TCP, &cb_tcp0mq);
   if (!s)
     return NULL;
  
+  pico_socket_setoption(s, PICO_TCP_NODELAY, &sockopts);
+
   dbg("zmq_publisher: BIND\n");
   if (pico_socket_bind(s, &inaddr_any, &port)!= 0) {
     dbg("zmq publisher: BIND failed\n");