[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Reconnect Issue on TCP
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Reconnect Issue on TCP |
Date: |
Thu, 16 Sep 2010 15:34:59 +0100 |
On Thu, 2010-09-16 at 07:08 -0700, farid mahini wrote:
> repeat the above process again to re-listen. However the bind call
> fails.
I would guess that the address is still in use. Why not leave the
listening socket alone (don't close it) and just don't call accept until
you want the next data connection. This avoids the need to repeatedly
close and re-open the listening socket, and should have the behaviour
you want.
Kieran