Return-Path: X-Original-To: apmail-cassandra-dev-archive@www.apache.org Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E65510D34 for ; Tue, 29 Oct 2013 10:32:03 +0000 (UTC) Received: (qmail 36786 invoked by uid 500); 29 Oct 2013 10:32:02 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 36563 invoked by uid 500); 29 Oct 2013 10:32:00 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 36550 invoked by uid 99); 29 Oct 2013 10:32:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 10:32:00 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremy.hanna1234@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 10:31:55 +0000 Received: by mail-ee0-f48.google.com with SMTP id d49so58964eek.7 for ; Tue, 29 Oct 2013 03:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=knq9E9MgZJjNvtlkyeEzughLWVANuGJ3c8Wv6cLcsZM=; b=giaZZOl3mexcRrX3OKVY1FjCefLHejBIblpVVWeqpZgzRKsV39KeywRCohFwmwb4MG SKlDbkbI2ynsRCO3dH+zfXovtXYfeIpXJz0X9pTPm79ik5R0gwxTPl3nrGKHgtYh1XXt Rn66RF3Y7ihUfyhI7vy7IQvYxS+Vqt5MH1jR+mOHAT/D6dyCa20iXhLtSOHQd/tS1Omx GcGis/i4Og4OLKcFC/cgvAi2S0PhHZEoFUzA1UlzOBajaI/qDV2H1UH813bFJw3lCmrw M2ezfkldMvox9XPZIkJ7Myk9S0w6X/pmj3b/G3q2dWG4vNDtrNknCMUjxjvNOSB7IRs8 7Fwg== X-Received: by 10.14.201.9 with SMTP id a9mr27021856eeo.28.1383042694646; Tue, 29 Oct 2013 03:31:34 -0700 (PDT) Received: from [192.168.1.103] (host90-152-1-163.ipv4.regusnet.com. [90.152.1.163]) by mx.google.com with ESMTPSA id a6sm68575456eei.10.2013.10.29.03.31.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 03:31:29 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Subject: Re: Implementing a driver for cassandra native protocol v2 From: Jeremy Hanna In-Reply-To: Date: Tue, 29 Oct 2013 10:31:30 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <6C8FBB79-9744-454C-BC83-4066229FF686@gmail.com> References: To: dev@cassandra.apache.org X-Mailer: Apple Mail (2.1816) X-Virus-Checked: Checked by ClamAV on apache.org Also, you might see if you could join efforts with Aleksey on = https://github.com/iamaleksey/seestar as well :) Or at least exchange = ideas. On 28 Oct 2013, at 14:17, Sylvain Lebresne wrote: > On Sat, Oct 26, 2013 at 8:07 PM, Mathieu D'Amours = wrote: >=20 >> Hello, >>=20 >> I'm currently implementing an Erlang driver for Cassandra's binary >> protocol v2. Most of it is straightforward, but I came across this = part in >> [4.1.4. QUERY]: >>=20 >>> is a [byte] whose bits define the options for this query and >>> in particular influence what the remainder of the message = contains. >>> A flag is set if the bit corresponding to its `mask` is set. >> Supported >>> flags are, given there mask: >>> 0x01 : ... >>> 0x02 : ... >>> 0x03 : ... >>> 0x04 : ... >>=20 >> Does that mean that the 0x01 flag is set if `1 << 0` is set? and 0x03 = is >> set if `1 << 2` is set? >>=20 >=20 > This is what it means, but really that's a typo. The "mask" values = should > read 0x01, 0x02, 0x04, 0x08 and 0x10. I'll fix the spec. >=20 > -- > Sylvain >=20 >=20 >>=20 >> Thanks in advance >>=20 >> Mathieu