This project has moved. For the latest updates, please go here.

Ack Messages?

Sep 24, 2012 at 8:30 PM

I was wondering if the client/server have functionality to Ack once a message is received. This would let the Client/Server know the message it send was successfully received on the other side.

Sep 24, 2012 at 9:32 PM

There is a TCP-level ack, which guarantees that the send operation will complete with an error if the data is not successfully received.

If you want an application-level ack, you'd have to add it yourself. There is nothing built-in to the library for that.


Sep 25, 2012 at 2:29 PM

Any suggestions on how to go about that?

Sep 25, 2012 at 3:47 PM

I'm not sure what you're asking. You just add an ack message to the messages used by your application protocol.


P.S. You probably don't need it. TCP-level acks handle most situations quite well.

Sep 25, 2012 at 4:34 PM

Where in your code does it check that the message was received by the other end successfully?

Sep 25, 2012 at 6:45 PM

It doesn't. The ack is at the TCP level, so if it wasn't received successfully, the next Send or Receive operation will fail.