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

Function netconn_shutdown

components/net/lwip/lwip-2.1.2/src/api/api_lib.c:1162–1166  ·  view source on GitHub ↗

* @ingroup netconn_tcp * Shut down one or both sides of a TCP netconn (doesn't delete it). * * @param conn the TCP netconn to shut down * @param shut_rx shut down the RX side (no more read possible after this) * @param shut_tx shut down the TX side (no more write possible after this) * @return ERR_OK if the netconn was closed, any other err_t on error */

Source from the content-addressed store, hash-verified

1160 * @return ERR_OK if the netconn was closed, any other err_t on error
1161 */
1162err_t
1163netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx)
1164{
1165 return netconn_close_shutdown(conn, (u8_t)((shut_rx ? NETCONN_SHUT_RD : 0) | (shut_tx ? NETCONN_SHUT_WR : 0)));
1166}
1167
1168#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD)
1169/**

Callers 1

lwip_shutdownFunction · 0.70

Calls 1

netconn_close_shutdownFunction · 0.70

Tested by

no test coverage detected