void AddCollector(char *address, unsigned short port, const char *protocol) { ipfix_transport_protocol proto;  if (strcasecmp(protocol, "TCP") == 0) proto = TCP; else if (strcasecmp(protocol, "UDP") == 0) proto = UDP; else LOG("Invalid protocol %s\n", protocol);  LOG("Adding %s: ipfix_add_collector(exporter, address, port, proto); }
bool AddCollector(char *address, unsigned short port, const char *protocol) { ipfix_transport_protocol proto;  if (strcasecmp(protocol, "TCP") == 0) { proto = TCP; } else if(strcasecmp(protocol, "UDP") == 0) { proto = UDP; } else { msg(MSG_ERROR, "ExporterSink: invalid protocol %s for %s", protocol, address ); return false; }  DPRINTF("Adding %s: return(ipfix_add_collector(exporter, address, port, proto) == 0); }
  void AddCollector(char *address, unsigned short port, const char *protocol)  {    ipfix_transport_protocol proto;        if (strcasecmp(protocol, "TCP") == 0)      proto = TCP;    else if (strcasecmp(protocol, "UDP") == 0)      proto = UDP;    else      LOG("Invalid protocol %s\n", protocol);          LOG("Adding %s://%s:%d\n", protocol, address, port);    ipfix_add_collector(exporter, address, port, proto);  }