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.

Socket/bsd/wrapper.h

Committer:
tass
Date:
2016-01-28
Revision:
155:a70f34550c34
Parent:
78:adea33760ce5

File content as of revision 155:a70f34550c34:

#ifndef ____WRAPPER_H
#define ____WRAPPER_H

#ifdef __cplusplus
extern "C"{
#endif

#include "pico_ipv4.h"
#include "pico_ipv6.h"
#include "pico_stack.h"
#include "pico_socket.h"

#ifdef __cplusplus
}
#endif

#include "mbed.h"
#include "rtos.h"

struct stack_endpoint {
  uint16_t sock_fd;
  struct pico_socket *s;
  int connected;
  uint16_t events;
  uint16_t revents;
  Queue<void,1> *queue;//receive queue of 1 element of type 
  uint32_t timeout; // this is used for timeout sockets
  int state; // for pico_state
  uint8_t broadcast;
};

void picotcp_start(void);
struct stack_endpoint *pico_get_socket(uint16_t sockfd);
#endif