Don't leave TLSPacketConn unclosed when there's a first Dial error.
[dnstt.git] / turbotunnel / consts.go
blob5684bf738016961474594e89c7c8d95cc06aec68
1 // Package turbotunnel is facilities for embedding packet-based reliability
2 // protocols inside other protocols.
3 //
4 // https://github.com/net4people/bbs/issues/9
5 package turbotunnel
7 import "errors"
9 // QueueSize is the size of send and receive queues in QueuePacketConn and
10 // RemoteMap.
11 const QueueSize = 128
13 var errClosedPacketConn = errors.New("operation on closed connection")
14 var errNotImplemented = errors.New("not implemented")
16 // DummyAddr is a placeholder net.Addr, for when a programming interface
17 // requires a net.Addr but there is none relevant. All DummyAddrs compare equal
18 // to each other.
19 type DummyAddr struct{}
21 func (addr DummyAddr) Network() string { return "dummy" }
22 func (addr DummyAddr) String() string { return "dummy" }