templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false), numPacketsToRelease(0), ipfix_maxpackets(IPFIX_PACKETS_MAX) { int ret, i, tmplid; unsigned short ttype, tlength, toffset;   ret = ipfix_init_exporter(sourceID, &exporter); if (ret) { LOG("Error initializing IPFIX exporter\n"); exit(1); }   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, ttype, tlength, 0); } ipfix_end_template_set(exporter, tmplid); };
templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false), numPacketsToRelease(0), ipfix_maxpackets(IPFIX_PACKETS_MAX) { int ret, i, tmplid; unsigned short ttype, tlength, toffset;   ret = ipfix_init_exporter(sourceID, &exporter); if(ret) { msg(MSG_FATAL, "ExporterSink: error initializing IPFIX exporter"); exit(1); }   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, ttype, tlength, 0); }  ipfix_end_template_set(exporter, tmplid); };
    ExporterSink(Template *tmpl, int sID) : sourceID(sID),        templ(tmpl), thread(ExporterSink::exporterSinkProcess), exitFlag(false),        numPacketsToRelease(0), ipfix_maxpackets(IPFIX_PACKETS_MAX)  {    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, ttype, tlength, 0);    }    ipfix_end_template_set(exporter, tmplid);  };