Dear Kieran,
Thank you for your reply.
Can I use SO_REUSEADDR on listening PCBs without compromising
reliability, or it is "safer" to wait?
I think you'll be fine setting SO_REUSEADDR.
I've seen that SO_REUSEADDR flag is inerithed from listen pcb to
connection pcb;
Do you think it should be better to clear the flag on connected pcbs
(for example, in the accept callback)?
If I understand well, with SO_REUSEADDR flag set on the pcb passed to
tcp_bind(),
the routine does allow binding if the address is already in use on:
- any listen/connection pcb having the REUSEADDR flag set,
- any listen/connection pcb in TIME-WAIT state (regardless of having the
REUSEADDR flag set or not).
Am I right?
Thank you very much!
Enrico
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users