Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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.
Socket/bsd/wrapper.h@29:1a47b7151851, 2013-06-16 (annotated)
- Committer:
- daniele
- Date:
- Sun Jun 16 20:19:44 2013 +0000
- Revision:
- 29:1a47b7151851
- Child:
- 35:6078073547bb
Updated from masterbranch;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| daniele | 29:1a47b7151851 | 1 | #ifndef ____WRAPPER_H |
| daniele | 29:1a47b7151851 | 2 | #define ____WRAPPER_H |
| daniele | 29:1a47b7151851 | 3 | |
| daniele | 29:1a47b7151851 | 4 | #ifdef __cplusplus |
| daniele | 29:1a47b7151851 | 5 | extern "C"{ |
| daniele | 29:1a47b7151851 | 6 | #endif |
| daniele | 29:1a47b7151851 | 7 | |
| daniele | 29:1a47b7151851 | 8 | #include "pico_ipv4.h" |
| daniele | 29:1a47b7151851 | 9 | #include "pico_ipv6.h" |
| daniele | 29:1a47b7151851 | 10 | #include "pico_stack.h" |
| daniele | 29:1a47b7151851 | 11 | #include "pico_socket.h" |
| daniele | 29:1a47b7151851 | 12 | |
| daniele | 29:1a47b7151851 | 13 | #ifdef __cplusplus |
| daniele | 29:1a47b7151851 | 14 | } |
| daniele | 29:1a47b7151851 | 15 | #endif |
| daniele | 29:1a47b7151851 | 16 | |
| daniele | 29:1a47b7151851 | 17 | #include "mbed.h" |
| daniele | 29:1a47b7151851 | 18 | #include "rtos.h" |
| daniele | 29:1a47b7151851 | 19 | |
| daniele | 29:1a47b7151851 | 20 | struct stack_endpoint { |
| daniele | 29:1a47b7151851 | 21 | uint16_t sock_fd; |
| daniele | 29:1a47b7151851 | 22 | struct pico_socket *s; |
| daniele | 29:1a47b7151851 | 23 | int connected; |
| daniele | 29:1a47b7151851 | 24 | int events; |
| daniele | 29:1a47b7151851 | 25 | int revents; |
| daniele | 29:1a47b7151851 | 26 | Queue<void,1> *queue;//receive queue of 1 element of type |
| daniele | 29:1a47b7151851 | 27 | uint32_t timeout; // this is used for timeout sockets |
| daniele | 29:1a47b7151851 | 28 | int state; // for pico_state |
| daniele | 29:1a47b7151851 | 29 | }; |
| daniele | 29:1a47b7151851 | 30 | |
| daniele | 29:1a47b7151851 | 31 | void picotcp_start(void); |
| daniele | 29:1a47b7151851 | 32 | struct stack_endpoint *pico_get_socket(uint16_t sockfd); |
| daniele | 29:1a47b7151851 | 33 | #endif |
