274 |
} else { |
} else { |
275 |
err = ERR_OK; |
err = ERR_OK; |
276 |
/* If the application has registered a "sent" function to be |
/* If the application has registered a "sent" function to be |
277 |
called when new send buffer space is avaliable, we call it |
called when new send buffer space is available, we call it |
278 |
now. */ |
now. */ |
279 |
if(pcb->acked > 0) { |
if(pcb->acked > 0) { |
280 |
TCP_EVENT_SENT(pcb, pcb->acked, err); |
TCP_EVENT_SENT(pcb, pcb->acked, err); |
356 |
npcb = tcp_alloc(pcb->prio); |
npcb = tcp_alloc(pcb->prio); |
357 |
/* If a new PCB could not be created (probably due to lack of memory), |
/* If a new PCB could not be created (probably due to lack of memory), |
358 |
we don't do anything, but rely on the sender will retransmit the |
we don't do anything, but rely on the sender will retransmit the |
359 |
SYN at a time when we have more memory avaliable. */ |
SYN at a time when we have more memory available. */ |
360 |
if(npcb == NULL) { |
if(npcb == NULL) { |
361 |
DEBUGF(TCP_DEBUG, ("tcp_listen_input: could not allocate PCB\n")); |
DEBUGF(TCP_DEBUG, ("tcp_listen_input: could not allocate PCB\n")); |
362 |
#ifdef TCP_STATS |
#ifdef TCP_STATS |