semantic-internet-protocol 0.0.5 • Public • Published 9 years ago semantic-internet-protocol
This Repo contains the spec for the semantic-internet-protocol and serialize/deserialize functions.
It is written in JSON-Schema
You can find the spec in the source directory
$ npm install semantic-internet-protocol
import { header , knowledge , interest } from 'semantic-internet-protocol'
# header.serialize({ version: Float, command: INTEREST|EXPOSE,
#contentLength: Int }) -> string
# header.deserialize(string) -> object
knowledge.serialize(Object) -> msgpack string
knowledge.deserialize(msgpack string) -> object
interest.serialize(Object) -> msgpack string
interest.deserialize(msgpack string) -> object
Readme Keywords none
Package Sidebar Install npm i semantic-internet-protocol
Downloads Weekly Downloads