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.

Files at this revision

API Documentation at this revision

Comitter:
tass
Date:
Wed Oct 16 12:47:37 2013 +0000
Parent:
97:e73b01cb3147
Child:
99:1c92cc810ecb
Child:
100:2a37cbd6814d
Child:
103:eff282352d4c
Commit message:
Fixed warnings in bsd layer.

Changed in this revision

Socket/bsd/stack_endpoint.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Socket/bsd/stack_endpoint.cpp	Wed Oct 16 12:40:29 2013 +0000
+++ b/Socket/bsd/stack_endpoint.cpp	Wed Oct 16 12:47:37 2013 +0000
@@ -42,8 +42,6 @@
 void picotcp_async_clean(struct pico_device * dev);
 static inline int __critical_select(struct stack_endpoint *ep, uint32_t time, uint8_t lock)
 {
-  int retval = 0;
-  uint16_t ev = ep->revents;
   uint32_t in_time = PICO_TIME_MS();
   
   if(lock) PicoTcpLock->unlock();
@@ -178,8 +176,6 @@
 
 struct stack_endpoint *picotcp_accept(struct stack_endpoint *ep, struct sockaddr *_cli_addr, socklen_t *len)
 {
-  int retval;
-  
   struct sockaddr_in *cli_addr = (struct sockaddr_in *)_cli_addr;
   struct stack_endpoint *aep = (struct stack_endpoint *) pico_zalloc(sizeof(struct stack_endpoint));
   if (aep)
@@ -425,6 +421,7 @@
   delete(ep->queue);
   pico_free(ep);
   PicoTcpLock->unlock();
+  return 0;
 }
 
 int picotcp_join_multicast(struct stack_endpoint *ep,const char* address,const char* local)
@@ -449,7 +446,6 @@
   (void)arg;
 #endif  
 
-  int ret = 0;
   struct pico_device *dev;
   while(1) {