<br><br><div class="gmail_quote">2009/4/27 Jarrod Roberson <span dir="ltr"><<a href="mailto:jarrod@vertigrated.com">jarrod@vertigrated.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div>get_line(Socket) -><br>
receive<br> {tcp, Socket, Bin} -><br> io:format("Received Line:~p~n", <span style="color: rgb(255, 0, 0);">binary_to_list(Bin)</span>),<br> get_line(Socket);<br> {tcp_closed, Socket} -><br>
io:format("Connection Closed!~n")<br>
end. <br></div></div><br>
</blockquote></div><br>thanks to something in Joe's email, I got this to work sort of.<br><br>I changed the above to :<br><br>get_line(Socket) -><br>
receive<br> {tcp, Socket, Bin} -><br> io:format("Received Line:~p~n", <span style="color: rgb(51, 204, 0);">[Bin]</span>),<br> get_line(Socket);<br> {tcp_closed, Socket} -><br>
io:format("Connection Closed!~n")<br>
end. <br><br>and I started getting output.<br><br>question now is how do I get that binary to a list that I can manipulate?<br>