reworked/improved the code for parsing received SSDP messages