diff options
Diffstat (limited to 'vendor/git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel/consts.go')
-rw-r--r-- | vendor/git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel/consts.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel/consts.go b/vendor/git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel/consts.go new file mode 100644 index 0000000..80f70af --- /dev/null +++ b/vendor/git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel/consts.go @@ -0,0 +1,17 @@ +// Package turbotunnel provides support for overlaying a virtual net.PacketConn +// on some other network carrier. +// +// https://github.com/net4people/bbs/issues/9 +package turbotunnel + +import "errors" + +// This magic prefix is how a client opts into turbo tunnel mode. It is just a +// randomly generated byte string. +var Token = [8]byte{0x12, 0x93, 0x60, 0x5d, 0x27, 0x81, 0x75, 0xf5} + +// The size of receive and send queues. +const queueSize = 32 + +var errClosedPacketConn = errors.New("operation on closed connection") +var errNotImplemented = errors.New("not implemented") |