[En-Nut-Discussion] Ethernut as TCP Client stops trying to connect after a while.

Erik Lindstein erik at ledutveckling.com
Mon Mar 10 17:34:50 CET 2008


I think i localized the problem in the code:
-----
				if ((socket = NutTcpCreateSocket()) != 0)
-----
If i didnt get the socket from NutTcpCreateSocket() then the
no_connection_count variable dossnt count and i can se that it stops
counting.
So i guess NutTcpCreateSocket() dossnt return a new socket.
In the documentation it says it should unless there issnt enough memory left.
But shoudnt i se that with the NutHeapAvailible() then that there
arent enough memory left?


-- 
/Erik Lindstein



More information about the En-Nut-Discussion mailing list