Documentation ¶
Index ¶
- func NewPacketConn(c net.PacketConn, cipher cipherx.StreamCipher) *packetConn
- type StreamConn
- func (c *StreamConn) ObtainReadIV() ([]byte, error)
- func (c *StreamConn) ObtainWriteIV() ([]byte, error)
- func (c *StreamConn) Read(b []byte) (int, error)
- func (c *StreamConn) ReadFrom(r io.Reader) (int64, error)
- func (c *StreamConn) Write(b []byte) (int, error)
- func (c *StreamConn) WriteTo(w io.Writer) (int64, error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.