stream

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPacketConn

func NewPacketConn(c net.PacketConn, cipher cipherx.StreamCipher) *packetConn

Types

type StreamConn

type StreamConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewStreamConn

func NewStreamConn(c net.Conn, cipher cipherx.StreamCipher) *StreamConn

func (*StreamConn) ObtainReadIV

func (c *StreamConn) ObtainReadIV() ([]byte, error)

func (*StreamConn) ObtainWriteIV

func (c *StreamConn) ObtainWriteIV() ([]byte, error)

func (*StreamConn) Read

func (c *StreamConn) Read(b []byte) (int, error)

func (*StreamConn) ReadFrom

func (c *StreamConn) ReadFrom(r io.Reader) (int64, error)

func (*StreamConn) Write

func (c *StreamConn) Write(b []byte) (int, error)

func (*StreamConn) WriteTo

func (c *StreamConn) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL