       return callback(err)
     client.send(message, 0, message.length, port, host, f)
   )
+  return true
 
 
 httpConReq = (url, username, password, timeout, callback) ->

      password = device.InternetGatewayDevice.ManagementServer.ConnectionRequestPassword?._value

    conReq = () ->
      if udpConnectionRequestAddress
        udpConReq(udpConnectionRequestAddress, username, password, (err) -> throw err if err)

      httpConReq(connectionRequestUrl, username, password, CONNECTION_REQUEST_TIMEOUT, (err) ->
        if udpConnectionRequestAddress
          return callback()
        callback(err)
      )



udpConReq = (address, un, key, callback) ->
  return false if not address
  [host, port] = address.split(':', 2)
  if port is undefined
    port = 80
  else
    port = parseInt(port)
    return false if isNaN(port)

  ts = Math.trunc(Date.now() / 1000)
  id = Math.trunc(Math.random() * 4294967295)
