mirror of
https://github.com/owenlejeune/AirHockey.git
synced 2026-01-01 20:31:18 -05:00
first commit
This commit is contained in:
29
node_modules/uws/src/Extensions.h
generated
vendored
Normal file
29
node_modules/uws/src/Extensions.h
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef EXTENSIONS_UWS_H
|
||||
#define EXTENSIONS_UWS_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace uWS {
|
||||
|
||||
enum Options : unsigned int {
|
||||
NO_OPTIONS = 0,
|
||||
PERMESSAGE_DEFLATE = 1,
|
||||
SERVER_NO_CONTEXT_TAKEOVER = 2,
|
||||
CLIENT_NO_CONTEXT_TAKEOVER = 4,
|
||||
NO_DELAY = 8
|
||||
};
|
||||
|
||||
template <bool isServer>
|
||||
class ExtensionsNegotiator {
|
||||
private:
|
||||
int options;
|
||||
public:
|
||||
ExtensionsNegotiator(int wantedOptions);
|
||||
std::string generateOffer();
|
||||
void readOffer(std::string offer);
|
||||
int getNegotiatedOptions();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // EXTENSIONS_UWS_H
|
||||
Reference in New Issue
Block a user