I've just started using tbb flow graphs and I've got some questions.
Actually, I need more nodes in it and as I understand I can build them by inheriting my class from
tbb::flow::sender, etc. Am I right?
Being more concrete, I need two nodes.
First one should be a sender node, which takes data asynchronously from UDP port using, say,
boost::asio and then pushes this data into the flow graph.
Second one is some kind of a functional node, but it should not respond to every incoming message. It should receive some portions of data, then it should process this data and then push out a single portion. For example, we can receive 10 integer numbers, add them all together and then push out the result.
Can anyone help me with designing these nodes? Or can anyone show me some articles on designing my own nodes?
I would be greatful for your answers.