[Top][All Lists]

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

Re: [lwip-users] Closing tcp-Connection

From: Markus Klein
Subject: Re: [lwip-users] Closing tcp-Connection
Date: Fri, 17 Oct 2014 16:36:30 +0200

Thank you for your feedback, Sergio.
Yes I’m using the RAW-API but I’m not calling tcp_tmr() or sys_check_timeouts(). As I’m using a simple OS I’m calling tcpip_thread () inside of a task. Am I correct that you use tcp_tmr () on Baremetal and tcpip_thread () when an OS is used?
What is working so far are the basic protocols like Auto-IP/DNS/DHCP. Also a Webserver, Telnet and iPerf-Server runs without problems. The iPerf-Client works also good until I try to close the connection.
By the way the speed results with IPerf are really good and it runs stable.
The iPerf-Client is the only thing I tried which uses an active TCP-connection, all others are passive (listen-Sockets).
I will do some more tests, maybe a simple thing link ping.
Thanks and Regards
Gesendet: Freitag, 17. Oktober 2014 um 14:29 Uhr
Von: "Sergio R. Caprile" <address@hidden>
An: address@hidden
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 will assume that you did read the wiki and are following its guidance
I will also assume that you checked the code in the contrib tree.
So no, it should work.
But, if you didn't go to any of these steps, please do.
The only thing that comes to my mind is that you are not calling the
tcp_tmr() function, make sure you have a call to sys_check_timeouts() in
your main loop.

If any of my assumptions is wrong, please come back with the missing data.

lwip-users mailing list

reply via email to

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