396 |
#if LWIP_CALLBACK_API |
#if LWIP_CALLBACK_API |
397 |
npcb->accept = pcb->accept; |
npcb->accept = pcb->accept; |
398 |
#endif /* LWIP_CALLBACK_API */ |
#endif /* LWIP_CALLBACK_API */ |
399 |
|
/* inherit socket options */ |
400 |
|
npcb->so_options = pcb->so_options & (SOF_DEBUG|SOF_DONTROUTE|SOF_KEEPALIVE|SOF_OOBINLINE|SOF_LINGER); |
401 |
/* Register the new PCB so that we can begin receiving segments |
/* Register the new PCB so that we can begin receiving segments |
402 |
for it. */ |
for it. */ |
403 |
TCP_REG(&tcp_active_pcbs, npcb); |
TCP_REG(&tcp_active_pcbs, npcb); |
484 |
|
|
485 |
/* Update the PCB (in)activity timer. */ |
/* Update the PCB (in)activity timer. */ |
486 |
pcb->tmr = tcp_ticks; |
pcb->tmr = tcp_ticks; |
487 |
|
pcb->keep_cnt = 0; |
488 |
|
|
489 |
/* Do different things depending on the TCP state. */ |
/* Do different things depending on the TCP state. */ |
490 |
switch (pcb->state) { |
switch (pcb->state) { |