Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 913 Bytes

README.md

File metadata and controls

70 lines (43 loc) · 913 Bytes

Sapphire Protocol

Custom protocol for data communication based on TCP

REQUEST

VERSION: 1 BYTE TYPE: 1 BYTE - GET / POST etc { GET = 0, GIVE = 1, INCR = 2 }

HOST: 4 BYTE INCREMENTAL: 1 BYTE

PATH_LEN: 2 BYTE PATH: * BYTE

CONTENT_LEN: 4 BYTE CONTENT_TYPE: 1 BYTE CONTENT: * BYTE

RESPONSE

VERSION: 1 BYTE TYPE: 1 BYTE

STATUS CODE: 1 BYTE

INCREMENTAL: 1 BYTE INCREMENTAL_IDENTIFIER: 4 BYTE

DATE_LEN: 2 BYTE DATE: * BYTE

CONTENT_LEN: 4 BYTE CONTENT_TYPE: 1 BYTE CONTENT: * BYTE

  • Server

  • Custom url = saph://{url}

  • Github Addy - "repo.user.github"

  • Front end

  • GTK - prolly

  • Language ??? C / Rust / Golang?

  • Render markdown

  • WASM?

Status Codes

  • 20 / OK
  • 30 / SERVER ERROR
  • 31 / RESOURCE NOT FOUND

Markdown Flavour

Normal markdown BUT

::{ script.lua }

  • To source a script

-> Name *To name a component