[erlang-questions] line_delimiter option in gen_tcp
Peter Devoy
peter.devoy@REDACTED
Thu Oct 17 15:11:17 CEST 2019
Hi list
TL;DR: can gen_tcp packets be terminated by null byte?
A few years ago I was looking at erlang for a pet project -- an XML socket
server for an old multiplayer Flash game.
The XML packets are terminated by null bytes and I swear I had gen_tcp
configured and working with {packet, line} and {line_delimiter, \00}.
Only now I can't find the code and gen_tcp does not appear to have a
documented or undocumented line_delimiter option. I can only find that
option referenced in inet.
Am I imagening the whole thing? Is there some way to achieve packet
delimitation by null byte using gen_tcp?
I am an erlang noob so any help would be much appreciated!
Cheers
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191017/d69d9ea3/attachment.htm>
More information about the erlang-questions
mailing list