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 */ |
TCP_REG(&tcp_listen_pcbs, lpcb); |
|
#if LWIP_TCP_REG_COMPILE_ERROR |
|
|
/* place this pcb at the start the "listening pcbs" list */ |
|
|
lpcb->next = tcp_listen_pcbs; |
|
|
tcp_listen_pcbs = lpcb; |
|
|
#else |
|
|
TCP_REG((struct tcp_pcb **)&tcp_listen_pcbs, (struct tcp_pcb *)lpcb); |
|
|
#endif |
|
316 |
return (struct tcp_pcb *)lpcb; |
return (struct tcp_pcb *)lpcb; |
317 |
} |
} |
318 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |