-
-
Save bols-blue/1458aaecdd0060af466a03d49061aab2 to your computer and use it in GitHub Desktop.
elixir で Unix Domain Socket を読み書きする ref: http://qiita.com/bols_blue/items/efe817413ec3c38c18bd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:ok,socket}= :gen_udp.open(0, [{:ifaddr, {:local, "/tmp/testsockin"}}]) | |
:gen_udp.send(socket,{:local, "/tmp/testsockin"}, 0, "test test \r\n") | |
receive do | |
tmp -> | |
IO.inspect tmp | |
after 3000 -> | |
IO.puts "time out" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment