VortexPayloadFeeder* vortex_payload_feeder_new ( VortexPayloadFeederHandler  handler,
axlPointer  user_data 
)

Allows to create a new payload feeder object that will be defined by feeder handler provided.

Once created the feeder, you can use use the sending API for feeder objects, see:

The handler provided must implement feeder events defined by VortexPayloadFeederOp. As an example, you can take a look on how is implemented vortex_payload_feeder_file.

Once a feeder is used to initiate a send operation, the user is not required to release it. This is already done by the vortex sequencer thread.

Parameters
handlerThe feeder handler that will define how this instance will work.
user_dataUser defined pointer passed to the feeder handler when it is called.
Returns
A reference to the payload feeder ready to use or NULL it if fails.

References vortex_mutex_create().

Referenced by vortex_payload_feeder_file().