Hello.

I am attempting to do the following:

1. Receive a message from a device that informs me that data is available
for pulling.
2. Send a message to the deivce (on the incomming connection) to request
the data.
3. Receive the data
4. Send a message deleteing the data and requesting more. (The delete needs
to arrive at the device before the request message does).

How can I ensure that the delete request will arrive at the devices before
the data request?

How can I reuse the incomming connection for the entire converstation?


For example:

1. A connection is received by the CumulativeProtocolDecode. This Converts
the IoBuffer into a ConnectionMessage and writes it to the
ProtocolDecoderOutput.

2. The implementation of MessageHandler for the ConnectionMessage requests
data by performing a "session.write(<data request>)".

3. A data message is received by the CumulativeProtocolDecode (I assume on
the same session). This Converts the IoBuffer into a DataMessage and writes
it to the ProtocolDecoderOutput.

4. The implementation of MessageHandler for the DataMessage sends a
"session.write(<delete reqeust>)" and a "session.write(<data request>)".


Kind Regards

Reply via email to