diff options
author | clsr <clsr@clsr.net> | 2017-08-18 13:46:10 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-08-18 13:46:10 +0200 |
commit | da77deba78c8a7447b4a38324d2422a5df293b26 (patch) | |
tree | bb94b8e18eaf27a86e9fc21c4342d9e0a605baf7 /cnp.go | |
download | cnp-go-da77deba78c8a7447b4a38324d2422a5df293b26.tar.gz cnp-go-da77deba78c8a7447b4a38324d2422a5df293b26.zip |
Initial commitv0.1.0
Diffstat (limited to 'cnp.go')
-rw-r--r-- | cnp.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 +) |