Documentation
¶
Index ¶
- Constants
- func Copy(dst io.Writer, src io.Reader) (written int64, err error)
- func Pipe(alice, bob io.ReadWriteCloser, closeWait int) (errA, errB error)
- func SnmpLogger(path string, interval int)
- type CompStream
- func (c *CompStream) Close() error
- func (c *CompStream) LocalAddr() net.Addr
- func (c *CompStream) Read(p []byte) (n int, err error)
- func (c *CompStream) RemoteAddr() net.Addr
- func (c *CompStream) SetDeadline(t time.Time) error
- func (c *CompStream) SetReadDeadline(t time.Time) error
- func (c *CompStream) SetWriteDeadline(t time.Time) error
- func (c *CompStream) Write(p []byte) (n int, err error)
- type MultiPort
- type QPPPort
Constants ¶
View Source
const (
EXIT_WAIT = 5 // max seconds to wait before exit
)
Variables ¶
This section is empty.
Functions ¶
func Pipe ¶
func Pipe(alice, bob io.ReadWriteCloser, closeWait int) (errA, errB error)
Pipe create a general bidirectional pipe between two streams
func SnmpLogger ¶
Types ¶
type CompStream ¶
type CompStream struct {
// contains filtered or unexported fields
}
CompStream is a net.Conn wrapper that compresses data using snappy
func NewCompStream ¶
func NewCompStream(conn net.Conn) *CompStream
NewCompStream creates a new stream that compresses data using snappy
func (*CompStream) Close ¶
func (c *CompStream) Close() error
func (*CompStream) LocalAddr ¶
func (c *CompStream) LocalAddr() net.Addr
func (*CompStream) RemoteAddr ¶
func (c *CompStream) RemoteAddr() net.Addr
func (*CompStream) SetDeadline ¶
func (c *CompStream) SetDeadline(t time.Time) error
func (*CompStream) SetReadDeadline ¶
func (c *CompStream) SetReadDeadline(t time.Time) error
func (*CompStream) SetWriteDeadline ¶
func (c *CompStream) SetWriteDeadline(t time.Time) error
type MultiPort ¶
func ParseMultiPort ¶
Parse mulitport listener or dialer
type QPPPort ¶
type QPPPort struct {
// contains filtered or unexported fields
}
QPPPort implements io.ReadWriteCloser interface for Quantum Permutation Pads
func NewQPPPort ¶
func NewQPPPort(underlying io.ReadWriteCloser, pad *qpp.QuantumPermutationPad, seed []byte) *QPPPort
Click to show internal directories.
Click to hide internal directories.