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
wrapper.h
00001 #ifndef ____WRAPPER_H 00002 #define ____WRAPPER_H 00003 00004 #ifdef __cplusplus 00005 extern "C"{ 00006 #endif 00007 00008 #include "pico_ipv4.h" 00009 #include "pico_ipv6.h" 00010 #include "pico_stack.h" 00011 #include "pico_socket.h" 00012 00013 #ifdef __cplusplus 00014 } 00015 #endif 00016 00017 #include "mbed.h" 00018 #include "rtos.h" 00019 00020 struct stack_endpoint { 00021 uint16_t sock_fd; 00022 struct pico_socket *s; 00023 int connected; 00024 uint16_t events; 00025 uint16_t revents; 00026 Queue<void,1> *queue;//receive queue of 1 element of type 00027 uint32_t timeout; // this is used for timeout sockets 00028 int state; // for pico_state 00029 uint8_t broadcast; 00030 }; 00031 00032 void picotcp_start(void); 00033 struct stack_endpoint *pico_get_socket(uint16_t sockfd); 00034 #endif
Generated on Tue Jul 12 2022 15:59:22 by
1.7.2