espconn_tcp.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __ESPCONN_TCP_H__
  2. #define __ESPCONN_TCP_H__
  3. #ifndef ESPCONN_TCP_DEBUG
  4. #define ESPCONN_TCP_DEBUG LWIP_DBG_OFF
  5. #endif
  6. #include "lwip/app/espconn.h"
  7. #ifndef ESPCONN_TCP_TIMER
  8. #define ESPCONN_TCP_TIMER 40
  9. #endif
  10. /******************************************************************************
  11. * FunctionName : espconn_tcp_disconnect
  12. * Description : A new incoming connection has been disconnected.
  13. * Parameters : espconn -- the espconn used to disconnect with host
  14. * Returns : none
  15. *******************************************************************************/
  16. extern void espconn_tcp_disconnect(espconn_msg *pdiscon);
  17. /******************************************************************************
  18. * FunctionName : espconn_tcp_client
  19. * Description : Initialize the client: set up a connect PCB and bind it to
  20. * the defined port
  21. * Parameters : espconn -- the espconn used to build client
  22. * Returns : none
  23. *******************************************************************************/
  24. extern sint8 espconn_tcp_client(struct espconn* espconn);
  25. /******************************************************************************
  26. * FunctionName : espconn_tcp_server
  27. * Description : Initialize the server: set up a listening PCB and bind it to
  28. * the defined port
  29. * Parameters : espconn -- the espconn used to build server
  30. * Returns : none
  31. *******************************************************************************/
  32. extern sint8 espconn_tcp_server(struct espconn *espconn);
  33. #endif /* __CLIENT_TCP_H__ */