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