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

Function netconn_err

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

* @ingroup netconn_common * Get and reset pending error on a netconn * * @param conn the netconn to get the error from * @return and pending error or ERR_OK if no error was pending */

Source from the content-addressed store, hash-verified

1136 * @return and pending error or ERR_OK if no error was pending
1137 */
1138err_t
1139netconn_err(struct netconn *conn)
1140{
1141 err_t err;
1142 SYS_ARCH_DECL_PROTECT(lev);
1143 if (conn == NULL) {
1144 return ERR_OK;
1145 }
1146 SYS_ARCH_PROTECT(lev);
1147 err = conn->pending_err;
1148 conn->pending_err = ERR_OK;
1149 SYS_ARCH_UNPROTECT(lev);
1150 return err;
1151}
1152
1153/**
1154 * @ingroup netconn_tcp

Callers 6

netconn_acceptFunction · 0.85
api_lib.cFile · 0.85
netconn_recv_data_tcpFunction · 0.85
lwip_netconn_do_sendFunction · 0.85
lwip_netconn_do_writeFunction · 0.85
lwip_getsockopt_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected