protected boolean isSSDPDiscovery(String body){
  if (body != null && body.startsWith("M-SEARCH * HTTP/1.1") && body.contains("MAN: \"ssdp:discover\"")) {
    return true;
  }
  return false;
}

protected boolean isSSDPDiscovery ( String body ) { if ( body != null && body . startsWith ( "M-SEARCH * HTTP/1.1" ) && body . contains ( "MAN: \"ssdp:discover\"" ) ) { return true ; } return false ; }
very naive ssdp discovery packet detection
