shithub: furgit

ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
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
)