Author Topic: Event when TCP send complete..  (Read 7321 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Event when TCP send complete..
« on: May 13, 2009, 05:13:50 PM »
Hi Mark,
  When data is sent using the fnSendTCP(..) command, is there an event within the callback routine that gets called when the whole buffer is sent? I dont want to use buffers on the port, and just want to set/clear a flag during a send procedure.

I wish to set a flag before a fnSendTCP(..) is carried out, then clear when the data has been sent.

Is TCP_EVENT_ACK only called when all the buffer is sent?

Regards
Neil
« Last Edit: May 13, 2009, 05:21:30 PM by neil »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Event when TCP send complete..
« Reply #1 on: May 13, 2009, 09:54:53 PM »
Hi Neil

I think that the TCP_EVENT_ACK event is the one that you need. It is called when the data transmission has been successfully acknowledged by the destination. This means that everything went well and the data no longer needs to be backed up, thus any buffers can be reused for new data.

Regards

Mark