web_socket_misc.h
error_t webSocketGenerateServerKey(WebSocket *webSocket)
Generate server's key.
Definition: web_socket_misc.c:1015
error_t webSocketParseHeaderField(WebSocket *webSocket, char_t *line)
Parse a header field.
Definition: web_socket_misc.c:514
WebSocket API (client and server)
error_t webSocketGenerateClientKey(WebSocket *webSocket)
Generate client's key.
Definition: web_socket_misc.c:971
error_t webSocketVerifyServerKey(WebSocket *webSocket)
Verify server's key.
Definition: web_socket_misc.c:1096
error_t webSocketVerifyClientHandshake(WebSocket *webSocket)
Verify client's handshake.
Definition: web_socket_misc.c:859
error_t webSocketFormatErrorResponse(WebSocket *webSocket, uint_t statusCode, const char_t *message)
Format HTTP error response.
Definition: web_socket_misc.c:783
bool_t webSocketCheckStatusCode(uint16_t statusCode)
Check whether a status code is valid.
Definition: web_socket_misc.c:1146
error_t webSocketParseRequestLine(WebSocket *webSocket, char_t *line)
Parse the Request-Line of the client's handshake.
Definition: web_socket_misc.c:368
error_t webSocketFormatServerHandshake(WebSocket *webSocket)
Format server's handshake.
Definition: web_socket_misc.c:731
bool_t webSocketCheckUtf8Stream(WebSocketUtf8Context *context, const uint8_t *data, size_t length, size_t remaining)
Check whether a an UTF-8 stream is valid.
Definition: web_socket_misc.c:1247
error_t webSocketParseStatusLine(WebSocket *webSocket, char_t *line)
Parse the Status-Line of the server's handshake.
Definition: web_socket_misc.c:476
error_t webSocketFormatClientHandshake(WebSocket *webSocket, uint16_t serverPort)
Format client's handshake.
Definition: web_socket_misc.c:645
error_t webSocketVerifyServerHandshake(WebSocket *webSocket)
Verify server's handshake.
Definition: web_socket_misc.c:908
error_t webSocketParseHandshake(WebSocket *webSocket)
Parse client or server handshake.
Definition: web_socket_misc.c:107
void webSocketChangeState(WebSocket *webSocket, WebSocketState newState)
Update WebSocket state.
Definition: web_socket_misc.c:88
error_t webSocketVerifyClientKey(WebSocket *webSocket)
Verify client's key.
Definition: web_socket_misc.c:1055
void webSocketParseConnectionField(WebSocket *webSocket, char_t *value)
Parse Connection header field.
Definition: web_socket_misc.c:601
error_t webSocketDecodePercentEncodedString(const char_t *input, char_t *output, size_t outputSize)
Decode a percent-encoded string.
Definition: web_socket_misc.c:1185
TCP/IP stack core.