kcp

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KcpListener added in v0.2.0

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

func NewKcpListener

func NewKcpListener(addr string, gs rua.GameServer, key []byte, bufSize int) *KcpListener

func (*KcpListener) Start added in v0.2.0

func (l *KcpListener) Start() error

func (*KcpListener) WithCrypt added in v0.2.0

func (l *KcpListener) WithCrypt(crypt string) *KcpListener

func (*KcpListener) WithDataShards added in v0.2.0

func (l *KcpListener) WithDataShards(shards int) *KcpListener

func (*KcpListener) WithGuardian added in v0.2.0

func (l *KcpListener) WithGuardian(g func(c *kcp.UDPSession) bool) *KcpListener

func (*KcpListener) WithLogger added in v0.2.0

func (l *KcpListener) WithLogger(logger rua.Logger) *KcpListener

func (*KcpListener) WithMaxAttempts added in v0.2.0

func (l *KcpListener) WithMaxAttempts(count int) *KcpListener

func (*KcpListener) WithParityShards added in v0.2.0

func (l *KcpListener) WithParityShards(shards int) *KcpListener

func (*KcpListener) WithPeerReadTimeout added in v0.3.0

func (l *KcpListener) WithPeerReadTimeout(t int) *KcpListener

func (*KcpListener) WithPeerTag added in v0.2.0

func (l *KcpListener) WithPeerTag(t string) *KcpListener

func (*KcpListener) WithPeerWriteTimeout added in v0.3.0

func (l *KcpListener) WithPeerWriteTimeout(t int) *KcpListener

func (*KcpListener) WithUpgrader added in v0.2.0

func (l *KcpListener) WithUpgrader(f func(c *kcp.UDPSession) (net.Conn, error)) *KcpListener

Directories

Path Synopsis
_example

Jump to

Keyboard shortcuts

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