Documentation ¶
Overview ¶
Provides leaky buffer, based on the example in Effective Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCipherMethod ¶
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
type LeakyBuf ¶
type LeakyBuf struct {
// contains filtered or unexported fields
}
func NewLeakyBuf ¶
NewLeakyBuf creates a leaky buffer which can hold at most n buffer, each with bufSize bytes.
type PacketConn ¶
type PacketConn struct { net.PacketConn *Cipher // contains filtered or unexported fields }
func NewPacketConn ¶
func NewPacketConn(c net.PacketConn, cipher *Cipher) *PacketConn
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
type PacketStreamConn ¶
func NewPacketStreamConn ¶
func NewPacketStreamConn(c net.Conn) *PacketStreamConn
Click to show internal directories.
Click to hide internal directories.