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 RTOSgeneric mbed Ethernet driverhigh performance NXP LPC1768 specific Ethernet driverMulti-threading support for mbed RTOSBerkeley sockets and integration with the New Socket APIFork of the apps running on top of the New Socket APIScheduling 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.
Diff: modules/pico_socket_tcp.h
- Revision:
- 149:5f4cb161cec3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/pico_socket_tcp.h Wed Apr 09 14:31:41 2014 +0200 @@ -0,0 +1,33 @@ +#ifndef PICO_SOCKET_TCP_H +#define PICO_SOCKET_TCP_H +#include "pico_socket.h" + +#ifdef PICO_SUPPORT_TCP + +/* Functions/macros: conditional! */ + +# define IS_NAGLE_ENABLED(s) (!(!(!(s->opt_flags & (1 << PICO_SOCKET_OPT_TCPNODELAY))))) +int pico_setsockopt_tcp(struct pico_socket *s, int option, void *value); +int pico_getsockopt_tcp(struct pico_socket *s, int option, void *value); +int pico_socket_tcp_deliver(struct pico_sockport *sp, struct pico_frame *f); +void pico_socket_tcp_delete(struct pico_socket *s); +void pico_socket_tcp_cleanup(struct pico_socket *sock); +struct pico_socket *pico_socket_tcp_open(uint16_t family); +int pico_socket_tcp_read(struct pico_socket *s, void *buf, uint32_t len); +void transport_flags_update(struct pico_frame *, struct pico_socket *); + +#else +# define pico_getsockopt_tcp(...) (-1) +# define pico_setsockopt_tcp(...) (-1) +# define pico_socket_tcp_deliver(...) (-1) +# define IS_NAGLE_ENABLED(s) (0) +# define pico_socket_tcp_delete(...) do {} while(0) +# define pico_socket_tcp_cleanup(...) do {} while(0) +# define pico_socket_tcp_open(f) (NULL) +# define pico_socket_tcp_read(...) (-1) +# define transport_flags_update(...) do {} while(0) + +#endif + + +#endif