Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: client/logdog/butlerlib/streamproto/magic.go

Issue 1429993002: LogDog: Add Butler stream server package. (Closed) Base URL: https://github.com/luci/luci-go@logdog-review-butlerproto
Patch Set: Bind POSIX test to POSIX domains. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/logdog/butlerlib/streamclient/stream_test.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 )
OLDNEW
« no previous file with comments | « client/logdog/butlerlib/streamclient/stream_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698