An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/boljen/msgconn

Package msgconn implements a wrapper that encodes and decodes variable-length messages to and from a bytestream, typically a connection. Creating a MsgConn is as easy as creating any other struct and setting some of it's fields. Only the Reader and Writer are required and only when using the ReadMessage and WriteMessage methods respectively. Bear in mind that the Reader, Writer and Closer fields can all be fulfilled by the same net.Conn instance. Sending and receiving messages between MsgConn instances is easy. The messages are framed by adding a fixed-size length prefix. The size of the prefix has been set to 3 bytes allowing for message sizes up to 2^24 bytes. The actual length is encoded as an unsigned integer using LittleEndian byte order.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/boljen/msgconn
License: MIT
Latest release: over 9 years ago
First release: over 9 years ago
Namespace: github.com/boljen
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago

    Loading...
    Readme
    Loading...