This project has moved and is read-only. For the latest updates, please go here.

Ack Messages?

Sep 24, 2012 at 9: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 10: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.

      -Steve

Sep 25, 2012 at 3:29 PM

Any suggestions on how to go about that?

Sep 25, 2012 at 4:47 PM

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

       -Steve

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

Sep 25, 2012 at 5:34 PM

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

Sep 25, 2012 at 7: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.

       -Steve