* @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 */
| 1160 | * @return ERR_OK if the netconn was closed, any other err_t on error |
| 1161 | */ |
| 1162 | err_t |
| 1163 | netconn_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 | /** |
no test coverage detected