48 |
|
|
49 |
#include "lwip/tcp.h" |
#include "lwip/tcp.h" |
50 |
|
|
51 |
|
#include "lwipopts.h" |
52 |
|
|
53 |
/* Incremented every coarse grained timer shot |
/* Incremented every coarse grained timer shot |
54 |
(typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */ |
(typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */ |
55 |
u32_t tcp_ticks; |
u32_t tcp_ticks; |
312 |
#if LWIP_CALLBACK_API |
#if LWIP_CALLBACK_API |
313 |
lpcb->accept = tcp_accept_null; |
lpcb->accept = tcp_accept_null; |
314 |
#endif /* LWIP_CALLBACK_API */ |
#endif /* LWIP_CALLBACK_API */ |
315 |
|
/* workaround for compile error: assignment requires modifiable lvalue in TCP_REG */ |
316 |
|
#if LWIP_TCP_REG_COMPILE_ERROR |
317 |
|
// place this pcb at the start the "listening pcbs" list |
318 |
|
lpcb->next = tcp_listen_pcbs; |
319 |
|
tcp_listen_pcbs = lpcb; |
320 |
|
#else |
321 |
TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb); |
TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb); |
322 |
|
#endif |
323 |
return (struct tcp_pcb *)lpcb; |
return (struct tcp_pcb *)lpcb; |
324 |
} |
} |
325 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |