consts.go 572 B

123456789101112131415161718
  1. // Package turbotunnel provides support for overlaying a virtual net.PacketConn
  2. // on some other network carrier.
  3. //
  4. // https://github.com/net4people/bbs/issues/9
  5. package turbotunnel
  6. import "errors"
  7. // This magic prefix is how a client opts into turbo tunnel mode. It is just a
  8. // randomly generated byte string.
  9. var Token = [8]byte{0x12, 0x93, 0x60, 0x5d, 0x27, 0x81, 0x75, 0xf5}
  10. // The size of receive and send queues.
  11. const queueSize = 512
  12. var errClosedPacketConn = errors.New("operation on closed connection")
  13. var errNotImplemented = errors.New("not implemented")