Bad value on output port 'tcp_inet'

Matthias Lang matthias@REDACTED
Sun Aug 13 22:42:35 CEST 2006


Jeff Crane writes:

 > 			gen_tcp:send(Socket,io:format("hello joe~n")),

The second argument to gen_tcp:send is supposed to be a list or a
binary or an iolist.

The return value of io:format is not a list, a binary or an iolist.

Maybe you intended to use io_lib:fwrite().

Matthias



More information about the erlang-questions mailing list