title: set parameters of gen_tcp in Elixir
body: <p>I'm trying to accept data through a TCP connection in Elixir using Erlang <code>gen_tcp</code></p>
  
  <pre><code>{:ok, socket} = :gen_tcp.connect("127.0.0.1" ,2000,[:binary, {:packet, 0}])
  receive_data(Socket, [])
  </code></pre>
  
  <p>But this isn't working due to bad arguments of <code>connect</code>. How to set binary and packet values in Elixir?</p>
  
  <p><a href="https://stackoverflow.com/questions/5773154/erlang-gen-tcp-connect-question">Here</a> It is explained about parameter meanings. But I need support to set parameters in Elixir.</p>