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 Belgium NV
Date:
Mon Dec 16 11:25:54 2013 +0100
Revision:
131:4758606c9316
Parent:
70:cd218dd180e5
Syncronized with master branch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tass 68:0847e35d08a6 1 /*********************************************************************
TASS Belgium NV 131:4758606c9316 2 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
TASS Belgium NV 131:4758606c9316 3 See LICENSE and COPYING for usage.
tass 68:0847e35d08a6 4
TASS Belgium NV 131:4758606c9316 5 Author: Andrei Carp <andrei.carp@tass.be>
TASS Belgium NV 131:4758606c9316 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 Belgium NV 131:4758606c9316 14 /* Response codes */
TASS Belgium NV 131:4758606c9316 15 #define HTTP_RESOURCE_FOUND 0
TASS Belgium NV 131:4758606c9316 16 #define HTTP_RESOURCE_NOT_FOUND 1
tass 68:0847e35d08a6 17
TASS Belgium NV 131:4758606c9316 18 /* Generic id for the server */
TASS Belgium NV 131:4758606c9316 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 Belgium NV 131:4758606c9316 30 char *pico_http_getResource(uint16_t conn);
TASS Belgium NV 131:4758606c9316 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 Belgium NV 131:4758606c9316 36 int pico_http_respond(uint16_t conn, uint16_t code);
TASS Belgium NV 131:4758606c9316 37 int8_t pico_http_submitData(uint16_t conn, void *buffer, uint16_t len);
TASS Belgium NV 131:4758606c9316 38 int pico_http_close(uint16_t conn);
tass 68:0847e35d08a6 39
tass 68:0847e35d08a6 40 #endif /* PICO_HTTP_SERVER_H_ */