yuubinsya

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth added in v0.3.3

func NewAuth(crypt bool, password []byte) (types.Auth, error)

func NewAuthPacketConn added in v0.3.3

func NewAuthPacketConn(local net.PacketConn) *authPacketConn

func NewClient added in v0.3.3

func NewClient(config *protocol.Protocol_Yuubinsya) point.WrapProxy

func NewHandshaker

func NewHandshaker(server bool, encrypted bool, password []byte) types.Handshaker

func NewServer

func NewServer(config *pl.Inbound_Yuubinsya) func(netapi.Listener, netapi.Handler) (netapi.Accepter, error)

func StartUDPServer added in v0.3.3

func StartUDPServer(packet net.PacketConn, handle func(*netapi.Packet), auth types.Auth, prefix bool)

Types

type Conn

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

func (*Conn) Write

func (c *Conn) Write(b []byte) (int, error)

type PacketConn

type PacketConn struct {
	pool.BufioConn
	// contains filtered or unexported fields
}

func (*PacketConn) Handshake added in v0.3.6

func (c *PacketConn) Handshake(migrateID uint64) (uint64, error)

Handshake Handshake only used for client

func (*PacketConn) ReadFrom

func (c *PacketConn) ReadFrom(payload []byte) (n int, _ net.Addr, err error)

func (*PacketConn) WriteBack added in v0.3.7

func (c *PacketConn) WriteBack(b []byte, addr net.Addr) (int, error)

func (*PacketConn) WriteTo

func (c *PacketConn) WriteTo(payload []byte, addr net.Addr) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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