Lines Matching defs:err
569 err_t err;
574 err = tcp_send_fin(pcb);
575 if (err == ERR_OK) {
582 err = tcp_send_fin(pcb);
583 if (err == ERR_OK) {
589 err = tcp_send_fin(pcb);
590 if (err == ERR_OK) {
600 if (err == ERR_OK) {
607 } else if (err == ERR_MEM) {
617 return err;
941 tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
944 LWIP_UNUSED_ARG(err);
1003 * @param err when NULL is returned, this contains the error reason
1008 * tpcb = tcp_listen_with_backlog_and_err(tpcb, backlog, &err);
1011 tcp_listen_with_backlog_and_err(struct tcp_pcb *pcb, u8_t backlog, err_t *err)
1083 if (err != NULL) {
1084 *err = res;
1215 * connection or because the other host didn't answer, the "err"
1227 the err calback will be called)
1376 err_t err;
1378 err = ERR_OK;
1521 err = tcp_keepalive(pcb);
1522 if (err == ERR_OK) {
1602 TCP_EVENT_POLL(prev, err);
1606 /* if err == ERR_ABRT, 'prev' is already deallocated */
1607 if (err == ERR_OK) {
1729 err_t err;
1742 TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
1743 if (err == ERR_OK) {
1755 TCP_EVENT_CLOSED(pcb, err);
1756 if (err == ERR_ABRT) {
1760 } else if (err == ERR_ABRT) {
1761 /* if err == ERR_ABRT, 'pcb' is already deallocated */
1862 tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
1871 } else if (err == ERR_OK) {
2047 /* adjust err stats: memp_malloc failed multiple times before */
2048 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
2052 /* adjust err stats: memp_malloc failed multiple times before */
2053 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
2057 /* adjust err stats: memp_malloc failed multiple times before */
2058 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
2062 /* adjust err stats: memp_malloc failed above */
2063 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
2226 * alerted of this event by the err callback. Errors that might abort a
2232 * @param pcb tcp_pcb to set the err callback
2233 * @param err callback function to call for this pcb when a fatal error
2237 tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
2241 LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
2242 pcb->errf = err;
2856 err_t err = lpcb->ext_args[i].callbacks->passive_open((u8_t)i, lpcb, cpcb);
2857 if (err != ERR_OK) {
2858 return err;