Little ssdp refactor
ssdp code refactored