What you are asking for is basically an application specific protocol on top of TCP, so you would need to implement a custom processor that understands your protocol and sends the acknowledgement back. A good example would be the ListenRELP processor which is very similar to ListenTCP/ListenSyslog, except it needs to acknowledge which RELP frame ids it has received.