Lines Matching refs:tcp_write

161  * Called by tcp_write and tcp_enqueue_flags.
228 * @param apiflags API flags given to tcp_write.
249 * length required? If tcp_write is going to be called again
300 /** Checks if tcp_write is allowed or not (checks state, snd_buf and snd_queuelen).
304 * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
314 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n"));
322 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n",
328 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
334 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n",
341 LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty",
344 LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty",
357 * calling tcp_write().
368 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
399 LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
401 LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)",
506 ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n",
524 LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0);
529 ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
573 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen));
576 LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen",
590 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
609 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n"));
622 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n",
651 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n",
698 LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
704 LWIP_ASSERT("tcp_write: extension of reference requires reference",
716 LWIP_ASSERT("tcp_write: concat checksum needs concatenated data",
745 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n",
748 LWIP_ASSERT("tcp_write: valid queue length",
769 LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL ||
772 LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen));
1097 * - if tcp_write had a memory error before (prevent delayed ACK timeout) or
1100 * RST is no sent using tcp_write/tcp_output.