|
Polyphase Game Engine
|
#include "Network/WebSocketHandshake.h"#include "Network/WebSocketFraming.h"#include <stdio.h>#include <stdlib.h>#include <string.h>Functions | |
| bool | WsParseUrl (const char *url, WsUrl &outUrl, std::string &outError) |
| std::string | WsBuildHandshakeRequest (const WsUrl &url, const std::vector< std::string > &protocols, const std::vector< std::pair< std::string, std::string > > &headers, std::string &outExpectedAccept) |
| WsHandshakeResult | WsParseHandshakeResponse (const uint8_t *data, uint32_t size, const std::string &expectedAccept, uint32_t &outConsumed, std::string &outSelectedProtocol, std::string &outError) |
| std::string WsBuildHandshakeRequest | ( | const WsUrl & | url, |
| const std::vector< std::string > & | protocols, | ||
| const std::vector< std::pair< std::string, std::string > > & | headers, | ||
| std::string & | outExpectedAccept | ||
| ) |
| WsHandshakeResult WsParseHandshakeResponse | ( | const uint8_t * | data, |
| uint32_t | size, | ||
| const std::string & | expectedAccept, | ||
| uint32_t & | outConsumed, | ||
| std::string & | outSelectedProtocol, | ||
| std::string & | outError | ||
| ) |
| bool WsParseUrl | ( | const char * | url, |
| WsUrl & | outUrl, | ||
| std::string & | outError | ||
| ) |