kcp

package module
v0.0.0-...-42799e3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx *gonet.Context, options ...Option) gonet.IClient

func NewServer

func NewServer(ctx *gonet.Context, options ...Option) gonet.IServer

Types

type Option

type Option func(*option)

func WithHandshakeTimeout

func WithHandshakeTimeout(t time.Duration) Option

func WithPBKDF2

func WithPBKDF2(pwd, salt string) Option

type Session

type Session struct {
	//核心会话标志
	gonet.SessionCommon
	// contains filtered or unexported fields
}

Socket会话

func (*Session) Close

func (s *Session) Close() error

func (*Session) RemoteAddr

func (s *Session) RemoteAddr() net.Addr

func (*Session) Send

func (s *Session) Send(msgID uint32, msg any) error

Jump to

Keyboard shortcuts

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