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.

Committer:
tass
Date:
Fri Oct 18 09:41:50 2013 +0000
Revision:
101:37763e3777a7
Parent:
70:cd218dd180e5
Child:
131:4758606c9316
merge with mainline Issue #39

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tass 68:0847e35d08a6 1 /*********************************************************************
tass 68:0847e35d08a6 2 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
tass 68:0847e35d08a6 3 See LICENSE and COPYING for usage.
tass 68:0847e35d08a6 4
tass 68:0847e35d08a6 5 Author: Andrei Carp <andrei.carp@tass.be>
tass 68:0847e35d08a6 6 *********************************************************************/
tass 68:0847e35d08a6 7
tass 68:0847e35d08a6 8 #ifndef PICO_HTTP_SERVER_H_
tass 68:0847e35d08a6 9 #define PICO_HTTP_SERVER_H_
tass 68:0847e35d08a6 10
tass 68:0847e35d08a6 11 #include <stdint.h>
tass 68:0847e35d08a6 12 #include "pico_http_util.h"
tass 68:0847e35d08a6 13
tass 68:0847e35d08a6 14 // Response codes
tass 68:0847e35d08a6 15 #define HTTP_RESOURCE_FOUND 0
tass 68:0847e35d08a6 16 #define HTTP_RESOURCE_NOT_FOUND 1
tass 68:0847e35d08a6 17
tass 68:0847e35d08a6 18 // Generic id for the server
tass 70:cd218dd180e5 19 #define HTTP_SERVER_ID 0u
tass 68:0847e35d08a6 20
tass 68:0847e35d08a6 21 /*
tass 68:0847e35d08a6 22 * Server functions
tass 68:0847e35d08a6 23 */
tass 70:cd218dd180e5 24 int8_t pico_http_server_start(uint16_t port, void (*wakeup)(uint16_t ev, uint16_t conn));
tass 68:0847e35d08a6 25 int pico_http_server_accept(void);
tass 68:0847e35d08a6 26
tass 68:0847e35d08a6 27 /*
tass 68:0847e35d08a6 28 * Client functions
tass 68:0847e35d08a6 29 */
tass 68:0847e35d08a6 30 char * pico_http_getResource(uint16_t conn);
tass 68:0847e35d08a6 31 int pico_http_getProgress(uint16_t conn, uint16_t * sent, uint16_t *total);
tass 68:0847e35d08a6 32
tass 68:0847e35d08a6 33 /*
tass 68:0847e35d08a6 34 * Handshake and data functions
tass 68:0847e35d08a6 35 */
tass 68:0847e35d08a6 36 int pico_http_respond(uint16_t conn, uint16_t code);
tass 70:cd218dd180e5 37 int8_t pico_http_submitData(uint16_t conn, void * buffer, uint16_t len);
tass 68:0847e35d08a6 38 int pico_http_close(uint16_t conn);
tass 68:0847e35d08a6 39
tass 68:0847e35d08a6 40 #endif /* PICO_HTTP_SERVER_H_ */