cencrypt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

Conn conn with encrypt.Cipher

func New

func New(c net.Conn, cip *encrypt.Cipher) *Conn

New a connection with encrypt cipher

func (*Conn) Read

func (sf *Conn) Read(b []byte) (n int, err error)

Read reads data from the connection.

func (*Conn) Write

func (sf *Conn) Write(b []byte) (n int, err error)

Write writes data to the connection.

Jump to

Keyboard shortcuts

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