SRConstants.h 686 B

1234567891011121314151617181920212223242526
  1. //
  2. // Copyright (c) 2016-present, Facebook, Inc.
  3. // All rights reserved.
  4. //
  5. // This source code is licensed under the BSD-style license found in the
  6. // LICENSE file in the root directory of this source tree. An additional grant
  7. // of patent rights can be found in the PATENTS file in the same directory.
  8. //
  9. #import <Foundation/Foundation.h>
  10. typedef NS_ENUM(NSInteger, SROpCode)
  11. {
  12. SROpCodeTextFrame = 0x1,
  13. SROpCodeBinaryFrame = 0x2,
  14. // 3-7 reserved.
  15. SROpCodeConnectionClose = 0x8,
  16. SROpCodePing = 0x9,
  17. SROpCodePong = 0xA,
  18. // B-F reserved.
  19. };
  20. /**
  21. Default buffer size that is used for reading/writing to streams.
  22. */
  23. extern size_t SRDefaultBufferSize(void);