MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / netconn_shutdown

Function netconn_shutdown

components/net/lwip/lwip-1.4.1/src/api/api_lib.c:701–705  ·  view source on GitHub ↗

* Shut down one or both sides of a TCP netconn (doesn't delete it). * * @param conn the TCP netconn to shut down * @return ERR_OK if the netconn was closed, any other err_t on error */

Source from the content-addressed store, hash-verified

699 * @return ERR_OK if the netconn was closed, any other err_t on error
700 */
701err_t
702netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx)
703{
704 return netconn_close_shutdown(conn, (shut_rx ? NETCONN_SHUT_RD : 0) | (shut_tx ? NETCONN_SHUT_WR : 0));
705}
706
707#if LWIP_IGMP
708/**

Callers 1

lwip_shutdownFunction · 0.70

Calls 1

netconn_close_shutdownFunction · 0.70

Tested by

no test coverage detected