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

Tomasz Blachowicz <>
Thu Oct 4 02:03:31 CEST 2007


Thanks, Michael! A typo... I think it's too late for hacking. Time to bed :)

On 10/4/07, Michael McDaniel <> wrote:
> 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
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
> > !DSPAM:52,47042b3673321921969146!
> >
> >
>
> --
> Michael McDaniel
> Portland, Oregon, USA
> http://autosys.us
> +1 503 283 5284
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list