session

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelSession

func DelSession(id string)

func GetStream

func GetStream(id string) (*mux.Stream, error)

func PanicHandler

func PanicHandler()

:TODO 恢复的没有用,为什么会panic,为什么恢复没用

func RunKCP

func RunKCP(port int)

func RunTCP

func RunTCP(port int)

func RunTLS

func RunTLS(port int)

func SetSession

func SetSession(id string, session *Session)

Types

type Session

type Session struct {
	Id       string
	Conn     *net.Conn
	Ssession *mux.Session
	WorkConn chan net.Conn
}

func GetSession

func GetSession(id string) (*Session, error)

func (*Session) Task

func (sess *Session) Task()

:TODO 存活检测

Jump to

Keyboard shortcuts

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