BVB Source Codes

uWebSockets Show Extensions.h Source code

Return Download uWebSockets: download Extensions.h Source code - Download uWebSockets Source code - Type:.h
  1. #ifndef EXTENSIONS_UWS_H
  2. #define EXTENSIONS_UWS_H
  3.  
  4. #include <string>
  5.  
  6. namespace uWS {
  7.  
  8. enum Options : unsigned int {
  9.     NO_OPTIONS = 0,
  10.     PERMESSAGE_DEFLATE = 1,
  11.     SERVER_NO_CONTEXT_TAKEOVER = 2,
  12.     CLIENT_NO_CONTEXT_TAKEOVER = 4,
  13.     NO_DELAY = 8
  14. };
  15.  
  16. template <bool isServer>
  17. class ExtensionsNegotiator {
  18. private:
  19.     int options;
  20. public:
  21.     ExtensionsNegotiator(int wantedOptions);
  22.     std::string generateOffer();
  23.     void readOffer(std::string offer);
  24.     int getNegotiatedOptions();
  25. };
  26.  
  27. }
  28.  
  29. #endif // EXTENSIONS_UWS_H
  30.  
downloadExtensions.h Source code - Download uWebSockets Source code
Related Source Codes/Software:
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11

 Back to top