Function ndpi_init_detection_module

Function Documentation

struct ndpi_detection_module_struct *ndpi_init_detection_module(struct ndpi_global_context *g_ctx)

Returns a new initialized detection module Note that before you can use it you can still load hosts and do other things. As soon as you are ready to use it do not forget to call first ndpi_finalize_initialization()

You can call this function multiple times, (i.e. to create multiple indipendent detection contexts) but all these calls MUST NOT run in parallel

@g_ctx = global context associated to the new detection module; NULL if no global context is needed

Return
the initialized detection module