shithub: furgit

ref: 0b2dcaabe23d45f6feb2273031854b14b512e3ff
dir: /network/protocol/v0v1/server/version.go/

View raw version
package server

// Version identifies the protocol version used on one v0/v1 server session.
type Version uint8

const (
	// Version0 is the original protocol framing with no leading version line.
	Version0 Version = iota
	// Version1 is protocol v1, which is v0 plus one leading "version 1\n"
	// pkt-line before ref advertisement.
	Version1
)