kcp_helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCipher

func GetCipher(name string, password string) (ret kcp.AheadCipher, err error)

func GetModeSetting

func GetModeSetting(mode string, noDelay, interval, resend, noCongestion int) (int, int, int, int)

Types

type CompStream

type CompStream struct {
	// contains filtered or unexported fields
}

helpers

func NewCompStream

func NewCompStream(conn net.Conn) *CompStream

func (*CompStream) Close

func (c *CompStream) Close() error

func (*CompStream) Read

func (c *CompStream) Read(p []byte) (n int, err error)

func (*CompStream) Write

func (c *CompStream) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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