Daniele Lacamera / PicoTCP Featured

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:
daniele
Date:
2013-06-16
Revision:
29:1a47b7151851
Child:
35:6078073547bb

File content as of revision 29:1a47b7151851:

#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;
  int events;
  int 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
};

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