mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
28 lines
711 B
C
28 lines
711 B
C
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#ifndef NET_SPDY_CORE_SPDY_BITMASKS_H_
|
||
|
#define NET_SPDY_CORE_SPDY_BITMASKS_H_
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
// StreamId mask from the SpdyHeader
|
||
|
const unsigned int kStreamIdMask = 0x7fffffff;
|
||
|
|
||
|
// Control flag mask from the SpdyHeader
|
||
|
const unsigned int kControlFlagMask = 0x8000;
|
||
|
|
||
|
// Mask the lower 24 bits.
|
||
|
const unsigned int kLengthMask = 0xffffff;
|
||
|
|
||
|
// Legal flags on data packets.
|
||
|
const int kDataFlagsMask = 0x01;
|
||
|
|
||
|
// Legal flags on control packets.
|
||
|
const int kControlFlagsMask = 0x03;
|
||
|
|
||
|
} // namespace net
|
||
|
|
||
|
#endif // NET_SPDY_CORE_SPDY_BITMASKS_H_
|