netconn_shutdown() — Shutdown a connection


err_t netconn_shutdown (struct netconn *conn , u8_t shut_rx , u8_t shut_tx );


Shut down one, or both, sides of a TCP connection, but without deleting the connection. The shut_rx and shut_tx parameters are treated as boolean values with non-zero values indicating that the respective read or write side should be closed. Specifying that both RX and TX are to be shut is the same as closing the connection via calling netconn_close().