[erlang-questions] Noob Question ...
Colm Dougan
colm.dougan@REDACTED
Fri Mar 6 04:33:31 CET 2009
On Fri, Mar 6, 2009 at 2:38 AM, fess <fess-erlang@REDACTED> wrote:
>
> means client takes a list of one as it's only argument. [ so
> test:client([8021]) works, but test:client(8021) does not match. ]
>
> try this
>
> client(Port) ->
> ...
Also, have a look at the "active" socket option to gen_tcp:connect.
You probably want to set it to false given the way your receive loop
works.
Colm
More information about the erlang-questions
mailing list