gen_tcp:send failing silently
Samuel Tardieu
sam@REDACTED
Mon Feb 23 10:58:22 CET 2004
>>>>> "Gerd" == Gerd Flaig <gerd@REDACTED> writes:
> 2. Call the parser function with your first chunk of
> data. Whenever a message is complete, the InputFunciton is
> called. The return value of the parser function is a new parser
> function which should be called with the next chunk.
For simplicity in code, I prefer to acquire input line by line (as
offered by gen_tcp). This way, I do not have to handle lines coming
from successive chunks or successive lines coming in one chunk.
Sam
--
Samuel Tardieu -- sam@REDACTED -- http://www.rfc1149.net/sam
More information about the erlang-questions
mailing list