From da77deba78c8a7447b4a38324d2422a5df293b26 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 18 Aug 2017 13:46:10 +0200 Subject: Initial commit --- cnp.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cnp.go (limited to 'cnp.go') diff --git a/cnp.go b/cnp.go new file mode 100644 index 0000000..9ba8444 --- /dev/null +++ b/cnp.go @@ -0,0 +1,16 @@ +// Package cnp provides CNP client and server implementations. +package cnp // import "contnet.org/lib/cnp-go" + +const ( + // DefaultPort represents the default port for the cnp:// schema. + DefaultPort = 25454 + + // MaxHeaderLength is the maximum byte size of the header. + MaxHeaderLength = 1 * 1024 * 1024 + + // VersionMajor is the major CNP version (X in cnp/X.Y). + VersionMajor = 0 + + // VersionMinor is the major CNP version (Y in cnp/X.Y). + VersionMinor = 3 +) -- cgit