         message.push '\r\n'
         message.join '\r\n'
 
+
     ssdpSend = (socket, message, callback) ->
         socket.send message, 0, message.length, config['network']['ssdp']['port'], config['network']['ssdp']['address'], (err) ->
+            event.emit 'ssdpMsg', "SSDP message sent on port #{socket.address().port}"
             callback err
 
     makeAdvDelay = ->


    advertise (err, port) ->
        setInterval advertise, makeAdvDelay(), (err, port) ->
            callback err, "UPnP Device #{config['device']['uuid']} advertised on port #{port}"
        callback err, "UPnP Device #{config['device']['uuid']} advertised on port #{port}"

exports.start = start

                protocol: 'http:'
                hostname: config['network']['http']['address']
                port: config['network']['http']['port']
                pathname: '/devices/root.xml'
            )

        # possible headers and values
