I am creating a simple TCP server using Vert.x and data is sent between a client and a server in the form of compressed packets.
I would like to use Verticles to create something of this nature (where [Something] is a Verticle and arrows show flow of data):
Buffer In -> [Decompress Packet] -> [Parse Packet] -> Reply to NetSocket
The problem is that I am unsure how I can carry the NetSocket from one Verticle (the result from Decompress Packet) to the next. I can of course send the result from the Decompress Packet to the Parse Packet Verticle but when the Parse Packet Verticle receives this data it will not have any handle to reply to the NetSocket using the reference it has to the sender.
Essentially, I need to carry the NetSocket through the event bus so that once the final Verticle is reached, it can then reply to the data.