Erlang gen_tcp connect question
Simple question...

This code ..

    client() ->
        SomeHostInNet = "localhost" % to make it runnable on one machine
        {ok, Sock} = gen_tcp:connect(SomeHostInNet, 5678, 
                                     [binary, {packet, 0}]),
        ok = gen_tcp:send(Sock, "Some Data"),
        ok = gen_tcp:close(Sock).

is very clear except that **I don't quite understand what [binary, {packet,0}] means** ?
Any one cares to explain ?

MadSeb
Erlang gen_tcp connect question
===

Simple question...

This code ..

    client() ->
        SomeHostInNet = "localhost" % to make it runnable on one machine
        {ok, Sock} = gen_tcp:connect(SomeHostInNet, 5678, 
                                     [binary, {packet, 0}]),
        ok = gen_tcp:send(Sock, "Some Data"),
        ok = gen_tcp:close(Sock).

is very clear except that **I don't quite understand what [binary, {packet,0}] means** ?
Any one cares to explain ?

MadSeb