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

Nathan Moore nategoose at gmail.com
Mon Mar 10 17:54:03 CET 2008


>
> But shoudnt i se that with the NutHeapAvailible() then that there
> arent enough memory left?


There's a slim possibility that the way your program uses memory that there
are lots of small
unused pieces of memory but no chunks big enough to make a socket.  This
probably isn't
the case, but you could check it by doing a NutHeapAlloc(sizeof(SOCKET)) and
test the return
value at the point just before your call to NutTcpCreateSocket.

Nathan



More information about the En-Nut-Discussion mailing list