   require Logger
   use GenServer
 
-  @broadcast_port 8213
+  @announce_interval_ms 3 * 1000
+  @broadcast_address {255, 255, 255, 255}
+  @broadcast_port (System.get_env("BROADCAST_PORT") || "8213") |> String.to_integer
 
   defmodule Message do
     @derive [Poison.Encoder]

          {:active, true}
        ])

    Logger.info "called it: #{inspect socket}"

    {:ok, %{socket: socket}}
  end

  def handle_info({:udp, _socket, ip, port, data}, state) do

    {:noreply, state}
  end

  def handle_info(other, _state) do
    Logger.info("THE UNEXPECTED: #{inspect other}")
  end
end
