Or do I have to implement it at the application level?
If you are talking about TCP, then no - no socket API I've seen allows you to do this.
You need to implement the ack in your application protocol if you need to be sure that the other end had received(and possibly processed) your data.