Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

Barry Leiba <barryleiba@computer.org> Wed, 13 July 2011 14:41 UTC

Return-Path: <barryleiba.mailing.lists@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A5D3921F867B for <hybi@ietfa.amsl.com>; Wed, 13 Jul 2011 07:41:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.128
X-Spam-Level:
X-Spam-Status: No, score=-104.128 tagged_above=-999 required=5 tests=[AWL=0.849, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xw5ps5f-ku-f for <hybi@ietfa.amsl.com>; Wed, 13 Jul 2011 07:41:50 -0700 (PDT)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 2BFC821F8678 for <hybi@ietf.org>; Wed, 13 Jul 2011 07:41:50 -0700 (PDT)
Received: by gxk19 with SMTP id 19so2217959gxk.31 for <hybi@ietf.org>; Wed, 13 Jul 2011 07:41:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WTnQJ/rUMJj+7YH0VOWKX8vjSEsT7ugpxWlHLlktMOE=; b=JMcY0hBLe11VY7IYQf1Z6tUTvCfLKE+DWe2TCi6PA+JrxDtqyZuPzrSZDH7NvyPNSS jfN9sHk7csCrNbQ6ZVQGP3REtlWP4LqF+z5dlh/9d+1ICL2qCJ6wXzufGhGLVoAoCU/E aeVRLb4uKU/a+wo7wIIQF9GYyoX0vDO64L6Cw=
MIME-Version: 1.0
Received: by 10.236.144.163 with SMTP id n23mr1572179yhj.498.1310568109803; Wed, 13 Jul 2011 07:41:49 -0700 (PDT)
Sender: barryleiba.mailing.lists@gmail.com
Received: by 10.147.172.10 with HTTP; Wed, 13 Jul 2011 07:41:49 -0700 (PDT)
In-Reply-To: <4E1C12DE.9060703@gmail.com>
References: <20110711140229.17432.23519.idtracker@ietfa.amsl.com> <4E1BD054.7010103@gmail.com> <8B0A9FCBB9832F43971E38010638454F040B419E9E@SISPE7MB1.commscope.com> <4E1C0CE9.10009@gmail.com> <CALiegf=22nxQTZKBTrJnjt+u_OYQX-hknzqQOE4v0GeUKJuDUw@mail.gmail.com> <4E1C12DE.9060703@gmail.com>
Date: Wed, 13 Jul 2011 10:41:49 -0400
X-Google-Sender-Auth: kmzsx0Y-dPa81JkAgrERa-y497s
Message-ID: <CAC4RtVAPBjG=KHE1iuDsTjwd5xgvmuD1XiL26Fv=r6qR-1T=JQ@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
To: Mykyta Yevstifeyev <evnikita2@gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>, "draft-ietf-hybi-thewebsocketprotocol@tools.ietf.org" <draft-ietf-hybi-thewebsocketprotocol@tools.ietf.org>
Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jul 2011 14:41:50 -0000

>>>> BIT            =  "0" / "1"
>>>
>>> implies that<BIT>  may be either ASCII 0x31 - "1" - or ASCII 0x30 - "0".
>>>  Once more, ABNF is for chars/octets, not bits.

Mykyta, be careful not to confuse the code for generating ABNF (for
which what you say above is correct) with the *use* of ABNF in
protocol specifications (for which you're wrong).

The construct above, << BIT = "0" / "1" >>, says that when you're
writing ABNF, you use the characters "0" and "1" (codes 30 and 31) to
represent the bit values.  But when we apply that ABNF in a protocol,
we can get any of these:

the-letter-c = %b01100011  ; also %x63

halfbyte-value-3 = %b0011  ; also %x3

two-bits-both-set = %b11

a-single-one-bit-by-itself = %b1

-----
%x3 and %x03 are not the same thing, and %b00000011, %b0011, and %b11
are not the same things.

Barry