Hi,
I'm new to Elixir and I'm loving it. I decided to write a UDP server for the original SliMP3 device to help me learn the language.
One thing I need to do is send a packet to the SliMP3 device telling it the IP address for the server. I see that I can call :inet.getifaddrs for the full list of interfaces and could then filter out by netmask to get my local 192.168... address. Is there a cleaner way to handle this? One option is to simply require that the server IP address be specified when starting up the server and passed in as an option to :gen_udp.open/2. Does anyone have any other suggestions?
Thanks.
Justin