[erlang-questions] gen_tcp:connect/3 and ** exited: badarg **

Michael McDaniel erlangx@REDACTED
Thu Oct 4 01:56:23 CEST 2007


On Thu, Oct 04, 2007 at 12:51:47AM +0100, Tomasz Blachowicz wrote:
> Hi,
> 
> I've been having problem when I try to call gen_tcp:connect/3
> function. It returns immediately with output that says: '** exited:
> badarg **'.
> 
> In erlang shell it is:
> 
> 1> gen_tcp:connect("www.erlang.org", 80, [binary, {pocket, 0}]).
> ** exited: badarg **
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1> gen_tcp:connect("www.erlang.org", 80, [binary, {packet, 0}]).
  {ok,#Port<0.414>}
2>

   try packet with an 'a' 


> Any ideas?
> 
> Regards,
> Tom
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> !DSPAM:52,47042b3673321921969146!
> 
> 

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
+1 503 283 5284



More information about the erlang-questions mailing list