lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Changing listen port number on the fly


From: Enrico Murador - Research & Development - CET
Subject: Re: [lwip-users] Changing listen port number on the fly
Date: Tue, 21 Jun 2011 16:48:03 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]