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

Function tcp_err

components/net/lwip/lwip-2.1.2/src/core/tcp.c:2056–2064  ·  view source on GitHub ↗

* @ingroup tcp_raw * Used to specify the function that should be called when a fatal error * has occurred on the connection. * * If a connection is aborted because of an error, the application is * alerted of this event by the err callback. Errors that might abort a * connection are when there is a shortage of memory. The callback * function to be called is set using the tcp_err() function

Source from the content-addressed store, hash-verified

2054 * has occurred on the connection
2055 */
2056void
2057tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
2058{
2059 LWIP_ASSERT_CORE_LOCKED();
2060 if (pcb != NULL) {
2061 LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
2062 pcb->errf = err;
2063 }
2064}
2065
2066/**
2067 * @ingroup tcp_raw

Callers 9

lwiperf_tcp_closeFunction · 0.50
lwiperf_tx_start_implFunction · 0.50
lwiperf_tcp_acceptFunction · 0.50
setup_tcpFunction · 0.50
accept_functionFunction · 0.50
api_msg.cFile · 0.50

Calls

no outgoing calls

Tested by 1