Skip to content

Instantly share code, notes, and snippets.

View WhiteCat6142's full-sized avatar
:octocat:

K.O. WhiteCat6142

:octocat:
  • Titech(Bachelor) -> UT(Master)
  • Tokyo,Japan
View GitHub Profile
@Hakkadaikon
Hakkadaikon / websocket_flame_parse.c
Created December 30, 2024 10:07
Websocket frame parse (RFC6455)
/**
* @file websocket_frame_parse.c
*
* @brief Parses each parameter of a websocket frame stored in network byte order.
* @see RFC6455 (https://datatracker.ietf.org/doc/html/rfc6455)
*/
#include <alloca.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>