Apama 10.7.2 | Connecting Apama Applications to External Components | Working with IAF Plug-ins | C/C++ Transport Plug-in Development | The C/C++ transport plug-in development specification | The transport constructor, destructor and info functions
 
The transport constructor, destructor and info functions
Every event transport needs to implement a constructor function, a destructor function and an info function. These methods are called by the IAF to (respectively) instantiate the event transport, to clean it up during unloading, and to provide information about the plug-in's capabilities.
EventTransport.h provides the following definitions:
*AP_EventTransportCtorPtr points to the constructor function. Typically part of the work of this constructor would be a call to updateProperties, in order to set up the initial configuration of the plug-in.
*AP_EventTransportDtorPtr points to the related destructor function.
*AP_EventTransportInfoPtr points to the info function.
The IAF will search for these functions by the names AP_EventTransport_ctor, AP_EventTransport_dtor and AP_EventTransport_info when the library is loaded, so you must use these exact names when implementing them in a transport layer plug-in.
See the API Reference for C++ (Doxygen) for more information on the above definitions.