How-To use the Spread Protocol:
Similar to reading from IPFIX Files, Create an fbInfoModel_t and an fbSession_t as above, though you should not define external templates in the new session for collection (instead requiring them to be sent from the group that you are subscribing to). Define an fbSpreadParams_t and set the session, groups to subscribe to, and Spread Daemon name.
Then create an fbCollector_t to connect and listen to the Spread Daemon using fbCollectorAllocSpread().
With an fbSession_t and fbcollector_t available, create a buffer for writing via fBufAllocForCollection(). Set the internal template ID with fBufSetInternalTemplate(), and use fBufNext() to read records from IPFIX Messages published to the group your collector is subscribing to.
To view all the Spread Groups that were sent the incoming record, call fbCollectorGetSpreadReturnGroups() on the collector.