Sliding replay window.
[champa.git] / turbotunnel / consts.go
blobb80bdd5b1c2c1d4beeafecb160f21c60b1d52e3a
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 const queueSize = 256
11 var errClosedPacketConn = errors.New("operation on closed connection")
12 var errNotImplemented = errors.New("not implemented")
14 // DummyAddr is a placeholder net.Addr, for when a programming interface
15 // requires a net.Addr but there is none relevant. All DummyAddrs compare equal
16 // to each other.
17 type DummyAddr struct{}
19 func (addr DummyAddr) Network() string { return "dummy" }
20 func (addr DummyAddr) String() string { return "dummy" }