lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] change port for web server


From: Kieran Mansley
Subject: Re: [lwip-users] change port for web server
Date: Wed, 8 Aug 2012 09:52:53 +0100

On 8 Aug 2012, at 01:11, vincent cui wrote:

> How to know the socket is in TCP time-wait state ?

You can't.  Any socket that you have a file descriptor for is not in the time 
wait state.  If you find that you want to re-use a port on a new socket and 
can't because there is another socket in the time wait state you could consider 
using the SO_REUSEADDR socket option to allow you to re-use it immediately.

Kieran


reply via email to

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