This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The HTTP/3 protocol is on the rise and brings huge improvements in terms of speed and security. | |
One of them is, that the so called "Server Name Identification" or SNI is mandatory and is sent | |
in the first packet by the client. | |
https://en.wikipedia.org/wiki/Server_Name_Indication | |
Parsing and retrieving the SNI should be easy, right? | |
Well, here is a complete code example to retrieve the SNI and other information from the | |
initial QUIC packet. The first packet is encrypted and protected. But the encryption keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "C" | |
import ( | |
"fmt" | |
"github.com/giorgisio/goav/avcodec" | |
"github.com/giorgisio/goav/avutil" | |
"github.com/giorgisio/goav/swscale" | |
"strconv" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This code is a headerless implementation of the WASI interface version 0.1 in C and prints "Hello World!. | |
* You only need clang. | |
* | |
* compile with | |
* clang -Os -nostdlib --target=wasm32 hello.c -o hello.wasm | |
* | |
* run with | |
* https://runno.dev/wasi | |
* Just upload hello.wasm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (global, env, heap) { | |
"use asm"; | |
var Exception = env.Exception; | |
var r = new global.Int32Array(heap); | |
var h = new global.Int32Array(heap); | |
var b = new global.Uint8Array(heap); | |
var w = new global.Uint16Array(heap); | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
#address-cells = <2>; | |
#size-cells = <2>; | |
compatible = "ucbbar,spike-bare-dev"; | |
model = "ucbbar,spike-bare"; | |
chosen { | |
bootargs = "root=host rootfstype=9p rootflags=trans=virtio"; |
NewerOlder