Chapter 48

stub/donate

github.com/openfluke/welvet/stub/donate🚧


Why it exists

LAN donors should accept framed JSON jobs without embedding HTTP in the engine.

What it is

u32-LE + JSON frames; ServeTCP/Dial; model_push vs local_lm. v0 workers echo.

Go example

examples/48-stub-donate/main.go

Run:cd welvet/examples/48-stub-donate && source ../env.sh && go run .
package main

import (
	"fmt"

	"github.com/openfluke/welvet/stub/donate"
)

func main() {
	fmt.Println("default port", donate.DefaultPort)
	// ln, err := donate.ServeTCP(donate.ServerOptions{Addr: ":17001", Mode: donate.ServerLocalLM})
}

Output

Run python3 _gen_welvet_book.py --run to capture output.