: [lwip-users] Closing tcp-Connection
In other words, do another call to tcp_new() when you want to reconnect
from tcp_close() in tcp.c:
* Connection pcbs are freed if not yet connected and may not be referenced
* any more. If a connection is established (at least SYN received or in
* a
In other words, do another call to tcp_new() when you want to reconnect
from tcp_close() in tcp.c:
* Connection pcbs are freed if not yet connected and may not be referenced
* any more. If a connection is established (at least SYN received or in
* a closing state), the connection is closed, and
Now I understand.
You are reusing "a socket".
After a TCP socket is closed, data can still be going around and the
default behaviour is to wait for a while before reusing that socket.
The raw API does not use sockets, but the behaviour is the same. The
waiting time varies from full hosts to embedde
-Ursprüngliche Nachricht-
Von: lwip-users-bounces+tsotb=gmx...@nongnu.org
[mailto:lwip-users-bounces+tsotb=gmx...@nongnu.org] Im Auftrag von Sergio R.
Caprile
Gesendet: Freitag, 17. Oktober 2014 18:42
An: lwip-users@nongnu.org
Betreff: Re: [lwip-users] Closing tcp-Connection
OK, anot
OK, another thing I assumed is that you were using NO_SYS=1, and forgot
to tell.
I know nothing on RTOS ports, so I will assume you are calling the right
function and respecting the single-thread restrictions, as your other
apps work.
My tcp closure is:
state = myCLOSING;
if(tcp_
lwip-users@nongnu.org
Betreff: Re: [lwip-users] Closing tcp-Connection
> Any hint what I could do to close the connection?
I will assume that you are using the raw API, and that you have already
checked that the port is working good by running known to work TCP
examples on the contrib tree.
I wil
> Any hint what I could do to close the connection?
I will assume that you are using the raw API, and that you have already
checked that the port is working good by running known to work TCP
examples on the contrib tree.
I will assume that you did read the wiki and are following its guidance
http:
Hello,
I have written a simple iPerf client which works quite good, but I can't
close the Connection after finishing the transfer. When I try to close a
TCP-Connection by calling tcp_close () the connection goes into the state
TIME_WAIT and is not closing. I'm using the master-branch of lwIP.
Hello,
I have written a simple iPerf client which works quite good, but I can't
close the Connection after finishing the transfer. When I try to close a
TCP-Connection by calling tcp_close () the connection goes into the state
TIME_WAIT and is not closing. I'm using the master-branch of lwIP.