Hi Mark,
I couldnt get it to work, the debugger kept freezing. So I re-installed a new utasker, and now seems to work.
After the memory gets allocated for the send buffer on the first buffer send, does it get freed again?
Does this feature use any more memory apart from the umalloc() of the send buffer?
I want to make sure I am correct, I added the following in the callback:
case TCP_EVENT_ACK:
if (fnSendBufTCP(Socket, 0, 0, TCP_BUF_NEXT)) {
return APP_SENT_DATA;
}
break;
case TCP_EVENT_ARP_RESOLUTION_FAILED:
break;
case TCP_EVENT_PARTIAL_ACK:
if (fnSendBufTCP(Socket, 0, 0, TCP_BUF_REP)) { // repeat send buffered
#ifdef SUPPORT_PEER_WINDOW
fnSendBufTCP(Socket, 0, 0, (TCP_BUF_NEXT | TCP_BUF_KICK_NEXT)); // kick off any following data as long as windowing allows it
#endif
return APP_SENT_DATA;
}
break;
case TCP_EVENT_REGENERATE:
break;
I dont have telit defined, and have #define SUPPORT_PEER_WINDOW , and #define USE_BUFFERED_TCP outside the #ifdef USE_TELNET.
Regards
Neil