Re: [lwip-users] Closing tcp-Connection

2014-10-21 Thread Markus
: [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

Re: [lwip-users] Closing tcp-Connection

2014-10-20 Thread Sergio R. Caprile
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

Re: [lwip-users] Closing tcp-Connection

2014-10-20 Thread Sergio R. Caprile
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

Re: [lwip-users] Closing tcp-Connection

2014-10-19 Thread Markus
-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

Re: [lwip-users] Closing tcp-Connection

2014-10-17 Thread Sergio R. Caprile
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_

Re: [lwip-users] Closing tcp-Connection

2014-10-17 Thread Markus Klein
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

Re: [lwip-users] Closing tcp-Connection

2014-10-17 Thread Sergio R. Caprile
> 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:

[lwip-users] Closing TCP-Connection

2014-10-16 Thread Markus
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.

[lwip-users] Closing tcp-Connection

2014-10-16 Thread Markus
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.