]> granicus.if.org Git - esp-idf/commitdiff
components/tcpip_adapter: add some comments
authorWu Jian Gang <wujiangang@espressif.com>
Thu, 29 Sep 2016 02:55:52 +0000 (10:55 +0800)
committerWu Jian Gang <wujiangang@espressif.com>
Thu, 29 Sep 2016 02:55:52 +0000 (10:55 +0800)
components/tcpip_adapter/include/tcpip_adapter.h

index 5737ab7a02aa2a4a1d0553c08fa6b95d6a246c9c..5b0fc4c627d1b02e0f27473a7c3e0a02e7322c53 100644 (file)
  * The aim of this adapter is to provide an abstract layer upon TCPIP stack.
  * With this layer, switch to other TCPIP stack is possible and easy in esp-idf.
  *
- * TODO: ipv6 support will be added.
+ * If users want to use other TCPIP stack, all those functions should be implemented
+ * by using the specific APIs of that stack. The macros in CONFIG_TCPIP_LWIP should be
+ * re-defined.
+ *
+ * tcpip_adapter_init should be called in the start of app_main for only once.
+ *
+ * Currently most adapter APIs are called in event_default_handlers.c.
+ *
+ * We recommend users only use set/get IP APIs, DHCP server/client APIs,
+ * get free station list APIs in application side. Other APIs are used in esp-idf internal,
+ * otherwise the state maybe wrong.
+ *
+ * TODO: ipv6 support will be added, use menuconfig to disable CONFIG_TCPIP_LWIP
  */
 
 #include <stdint.h>