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

Function netconn_disconnect

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

* @ingroup netconn_udp * Disconnect a netconn from its current peer (only valid for UDP netconns). * * @param conn the netconn to disconnect * @return See @ref err_t */

Source from the content-addressed store, hash-verified

406 * @return See @ref err_t
407 */
408err_t
409netconn_disconnect(struct netconn *conn)
410{
411 API_MSG_VAR_DECLARE(msg);
412 err_t err;
413
414 LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
415
416 API_MSG_VAR_ALLOC(msg);
417 API_MSG_VAR_REF(msg).conn = conn;
418 err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg));
419 API_MSG_VAR_FREE(msg);
420
421 return err;
422}
423
424/**
425 * @ingroup netconn_tcp

Callers 1

lwip_connectFunction · 0.70

Calls 1

netconn_apimsgFunction · 0.70

Tested by

no test coverage detected