ExporterSink(Template *tmpl, int sID) : sourceID(sID), templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false), numPacketsToRelease(0)
ExporterSink(Template *tmpl, int sID) : sourceID(sID), templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false), numPacketsToRelease(0), ipfix_maxpackets(IPFIX_PACKETS_MAX)
  ExporterSink(Template *tmpl, int sID)     : sourceID(sID), templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false), numPacketsToRelease(0)  {    int ret, i, tmplid;    unsigned short ttype, tlength, toffset;        // generate the exporter    ret = ipfix_init_exporter(sourceID, &exporter);    if (ret)    {      LOG("Error initializing IPFIX exporter\n");      exit(1);    }        // generate the ipfix template    tmplid = templ->getTemplateID();    ret =  ipfix_start_template_set(exporter, tmplid, templ->getFieldCount());    for (i = 0; i < templ->getFieldCount(); i++)    {      templ->getFieldInfo(i, &ttype, &tlength, &toffset);      ipfix_put_template_field(exporter, tmplid, tlength, ttype, 0);    }    ipfix_end_template_set(exporter, tmplid);  };