semantic-internet-protocol

0.0.5 • Public • Published

semantic-internet-protocol

Build Status

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

installation

$ npm install semantic-internet-protocol

usage

import { header, knowledge, interest } from 'semantic-internet-protocol'

API

# 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

Dependencies (1)

Dev Dependencies (10)

Package Sidebar

Install

npm i semantic-internet-protocol

Weekly Downloads

0

Version

0.0.5

License

GPL-3.0

Last publish

Collaborators

  • doodzik