[erlang-questions] reading zero-terminated strings from a socket

Joel Reymont <>
Sat Sep 15 21:56:06 CEST 2012


I need to read zero-terminated strings from a socket.

What is the most efficient way of doing so?

I wish there was a {packet, ...} option for this but, alas, {packet,
line} only looks for newlines.

    Thanks, Joel

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------



More information about the erlang-questions mailing list