Function ndpi_init_serializer

Function Documentation

int ndpi_init_serializer(ndpi_serializer *serializer, ndpi_serialization_format fmt)

Initialize a serializer handle (allocated by the caller).

Return
0 on success, a negative number otherwise
Parameters
  • serializer: The serializer handle
  • fmt: The serialization format (ndpi_serialization_format_json, ndpi_serialization_format_tlv, ndpi_serialization_format_csv)