From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 29 Aug 2016 12:39:49 +0200 Subject: Add old mailing list archives --- archives/extend/2014-January/000322.html | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 archives/extend/2014-January/000322.html (limited to 'archives/extend/2014-January/000322.html') diff --git a/archives/extend/2014-January/000322.html b/archives/extend/2014-January/000322.html new file mode 100644 index 00000000..76eb33c2 --- /dev/null +++ b/archives/extend/2014-January/000322.html @@ -0,0 +1,92 @@ + + + + [99s-extend] Parsing binary example in ranch guide + + + + + + + + + + +

[99s-extend] Parsing binary example in ranch guide

+ Loïc Hoguin + essen at ninenines.eu +
+ Wed Jan 15 08:51:32 CET 2014 +

+
+ +
Yes.
+
+Feel free to open a PR, thanks!
+
+On 01/15/2014 06:42 AM, Xiao Jia wrote:
+> Hi,
+>
+> I am learning how to use ranch and reading this page:
+>
+>      http://ninenines.eu/docs/en/ranch/HEAD/guide/parsers
+>
+>
+> << Size:32, _/bits >> = Buffer,
+> case Buffer of
+>      << Frame:Size/binary, Rest/bits >> ->
+>          handle_frame(Frame, Buffer);
+>      _ ->
+>          get_more_data(Buffer)
+> end.
+>
+>
+> Shouldn't it be
+>
+>      handle_frame(Frame, Rest);
+>
+> instead?
+>
+
+-- 
+Loïc Hoguin
+http://ninenines.eu
+
+
+ + +
+

+ +
+More information about the Extend +mailing list
+ -- cgit v1.2.3