| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package streamproto | 5 package streamproto |
| 6 | 6 |
| 7 var ( | 7 var ( |
| 8 // ProtocolFrameHeaderMagic is the number at the beginning of streams th
at | 8 // ProtocolFrameHeaderMagic is the number at the beginning of streams th
at |
| 9 // identifies the stream handshake version. | 9 // identifies the stream handshake version. |
| 10 // |
| 11 // This serves two purposes: |
| 12 // - To disambiguate a Butler stream from some happenstance string of
bytes |
| 13 // (which probably won't start with these characters). |
| 14 // - To allow an upgrade to the wire format, if one is ever needed. e.
g., |
| 15 // a switch to something other than recordio/JSON. |
| 10 ProtocolFrameHeaderMagic = []byte("BTLR1\x1E") | 16 ProtocolFrameHeaderMagic = []byte("BTLR1\x1E") |
| 11 ) | 17 ) |
| OLD | NEW |