Function ndpi_match_string_subprotocol
- Defined in File ndpi_api.h 
Function Documentation
- 
int ndpi_match_string_subprotocol(struct ndpi_detection_module_struct *ndpi_struct, char *string_to_match, u_int string_to_match_len, ndpi_protocol_match_result *ret_match)
- Check if the string passed match with a protocol - ndpi_struct = the detection module
- string_to_match = the string to match
- string_to_match_len = the length of the string
- ret_match = completed returned match information
 - Returns:
- the ID of the matched subprotocol; -1 if automa is not finalized; -2 if automa==NULL or string_to_match==NULL or empty string_to_match