[ejabberd] xml_stream:send_text

Joel Reymont joelr at well.com
Fri Apr 28 18:45:16 MSD 2006


It looks like send_text has left the xml_stream building. How am I  
supposed to redo this bit of code from xmpp.erl in Jabberlang?

receiver(Socket, Pid) ->
     case gen_tcp:recv(Socket, 0) of
	{ok, Data} ->
	    xml_stream:send_text(Pid, binary_to_list(Data)),
	    receiver(Socket, Pid);
	{error, Reason} ->
	    ok %% End receiver TODO: End other process

	Thanks, Joel


More information about the ejabberd mailing list