mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Copied and slightly modified from
https://gitweb.torproject.org/pluggable-transports/meek.git/log/?h=turbotunnel&id=7eb94209f857fc71c2155907b0462cc587fc76cc
https://github.com/net4people/bbs/issues/21
RedialPacketConn is adapted from clientPacketConn in
c64a61c6da/obfs4proxy/turbotunnel_client.go
https://github.com/net4people/bbs/issues/14#issuecomment-544747519
13 lines
388 B
Go
13 lines
388 B
Go
// 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"
|
|
|
|
// The size of receive and send queues.
|
|
const queueSize = 32
|
|
|
|
var errClosedPacketConn = errors.New("operation on closed connection")
|
|
var errNotImplemented = errors.New("not implemented")
|